forked from dfridrich/Ares
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.09 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
39
40
41
42
43
44
name: Tests
on: [push, pull_request]
env:
PHPUNIT_FLAGS: "--coverage-clover coverage.clover"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- 7.4
- 8.0
- 8.1
fail-fast: false
name: PHP ${{ matrix.php }} tests
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, mbstring, xml, tokenizer
coverage: none
- run: composer install --no-interaction --prefer-dist
- run: CHECK_CS=true php vendor/phpunit/phpunit/phpunit tests $PHPUNIT_FLAGS
lowest_dependencies:
name: Lowest Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: json, mbstring, xml, tokenizer
coverage: none
- run: composer update --no-interaction --prefer-dist --prefer-lowest --prefer-stable
- run: CHECK_CS=true php vendor/phpunit/phpunit/phpunit tests $PHPUNIT_FLAGS