-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 1.03 KB
/
phpunit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "PHPUnit"
on:
pull_request:
# paths:
# - "**.php"
# - "phpunit.xml.dist"
# - ".github/workflows/phpunit.yaml"
push:
# paths:
# - "**.php"
# - "phpunit.xml.dist"
# - ".github/workflows/phpunit.yaml"
jobs:
unit-tests:
name: PHPUnit
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.2', '8.3']
steps:
- uses: actions/checkout@master
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install dependencies
run: composer update --prefer-dist --no-progress --ignore-platform-req="ext-*" ${{ matrix.composer-prefer }}
- name: Run test suite
run: vendor/bin/phpunit ${{ matrix.phpunit-flags }}