Skip to content

Commit

Permalink
set-up-php-matrix-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmTal committed Aug 7, 2023
1 parent 557f0cf commit 85a2a9f
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,32 @@ on:
- master

jobs:
build:
name: Build
runs-on: ubuntu-latest
run:
name: Run Tests on ${{ matrix.operating-system }} with PHP ${{ matrix.php-versions }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.2', '7.4']
phpunit-versions: ['4.8.36']
include:
- operating-system: 'ubuntu-latest'
php-versions: '8.0'
phpunit-versions: '9'

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build Docker
run: docker build . --tag omnipay-vindicia
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit:${{ matrix.phpunit-versions }}
coverage: none

- name: Test
run: docker run --rm omnipay-vindicia make test
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run tests
run: phpunit

0 comments on commit 85a2a9f

Please sign in to comment.