Skip to content

Commit b02ddcb

Browse files
committed
Test supported PHP and dependency versions
1 parent 3dbe929 commit b02ddcb

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎.github/workflows/phpunit.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: phpunit
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
phpunit:
8+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
9+
timeout-minutes: 15
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- php: 8.2
16+
dependency-version: prefer-lowest
17+
- php: 8.2
18+
dependency-version: prefer-stable
19+
- php: 8.3
20+
dependency-version: prefer-stable
21+
- php: 8.4
22+
dependency-version: prefer-stable
23+
- php: 8.5
24+
dependency-version: prefer-stable
25+
26+
steps:
27+
- uses: actions/checkout@v7
28+
- uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php }}
31+
- name: Install dependencies
32+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
33+
- run: vendor/bin/phpunit

0 commit comments

Comments
 (0)