Skip to content

Commit 565a55f

Browse files
tobias-93bobvandevijver
authored andcommitted
Add PHPUnit test action
1 parent d99ac14 commit 565a55f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/phpunit.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PHPUnit tests
2+
on:
3+
push
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php: [ '8.1', '8.2', '8.3', '8.4' ]
15+
name: On PHP ${{ matrix.php }}
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup PHP ${{ matrix.php }}
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
25+
- name: Install dependencies (latest)
26+
run: composer install --prefer-dist --no-progress
27+
28+
- name: Run test suite (latest)
29+
run: ./vendor/bin/phpunit
30+
31+
- name: Install dependencies (lowest)
32+
run: composer update --prefer-lowest --no-progress
33+
34+
- name: Run test suite (lowest)
35+
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)