Skip to content

Commit

Permalink
Merge pull request #101 from vimeo/set-up-php-matrix-testing
Browse files Browse the repository at this point in the history
set-up-php-matrix-testing
  • Loading branch information
AdmTal authored Aug 7, 2023
2 parents 557f0cf + c4b782b commit 2df5bec
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,28 @@ 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']

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 2df5bec

Please sign in to comment.