Skip to content

Commit b818286

Browse files
committed
test php version matrix
1 parent 5944f87 commit b818286

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/phpcs.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ jobs:
1616
phpcs:
1717
name: PHP_CodeSniffer
1818
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
php-versions: ['8.1', '8.2', '8.3']
1922
steps:
2023
- uses: actions/checkout@master
2124

2225
- name: Set up PHP
2326
uses: shivammathur/setup-php@v2
2427
with:
25-
php-version: '8.2'
28+
php-version: ${{ matrix.php-versions }}
2629

2730
- name: Install dependencies
2831
run: composer update --prefer-dist --no-progress --ignore-platform-req="ext-*" ${{ matrix.composer-prefer }}

.github/workflows/phpunit.yaml

+8-5
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ jobs:
1717
unit-tests:
1818
name: PHPUnit
1919
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
php-versions: ['8.1', '8.2', '8.3']
2023
steps:
21-
- uses: actions/checkout@master
24+
- uses: actions/checkout@master
2225

23-
- name: Set up PHP
24-
uses: shivammathur/setup-php@v2
25-
with:
26-
php-version: '8.2'
26+
- name: Set up PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-versions }}
2730

2831
- name: Validate composer.json and composer.lock
2932
run: composer validate --strict

0 commit comments

Comments
 (0)