Skip to content

Commit

Permalink
Merge pull request #217 from localheinz/feature/matrix
Browse files Browse the repository at this point in the history
Enhancement: Use matrix strategy
  • Loading branch information
localheinz authored Feb 27, 2024
2 parents c813018 + 2c8903a commit 3d80295
Showing 1 changed file with 8 additions and 41 deletions.
49 changes: 8 additions & 41 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,24 @@
name: qa
on: [push, pull_request]
jobs:

PHP7_4:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
strategy:
matrix:
php-version:
- '7.4'
- '8.0'
- '8.1'

- name: Run PHPUnit
run: vendor/bin/phpunit -c tests/build.xml

PHP8_0:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run PHPUnit
run: vendor/bin/phpunit -c tests/build.xml

PHP8_1:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: ${{ matrix.php-version }}'

- name: Validate composer.json and composer.lock
run: composer validate
Expand Down

0 comments on commit 3d80295

Please sign in to comment.