Skip to content

Commit 7845110

Browse files
committed
.github/workflows/test.yml: test against all supported php versions
1 parent 27be9e7 commit 7845110

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/test.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,24 @@ on: push
44

55
jobs:
66
phpunit:
7+
strategy:
8+
matrix:
9+
php: [8.0, 8.1, 8.2, 8.3, 8.4]
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/cache@v2
12+
- uses: actions/checkout@v4
13+
- uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: ${{ matrix.php }}
16+
extensions: dom,json,mbstring,pcre,xmlreader
17+
coverage: xdebug
18+
env:
19+
fail-fast: true
20+
- uses: actions/cache@v4
1121
with:
1222
path: vendor
1323
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
14-
restore-keys: ${{ runner.os }}-composer-
24+
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
1525
- name: composer
1626
run: composer update
1727
- name: phpunit

0 commit comments

Comments
 (0)