-
Notifications
You must be signed in to change notification settings - Fork 71
54 lines (45 loc) · 1.14 KB
/
phpunit.yml
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
45
46
47
48
49
50
51
52
53
54
name: PHPUnit
on:
pull_request:
push:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php:
- '7.2'
- '8.3'
symfony:
- '5.0.*'
- '5.4.*' # LTS
- '6.0.*'
- '7.0.*'
exclude:
- php: '7.2'
symfony: '6.0.*' # requires PHP >=8.1
- php: '7.2'
symfony: '7.0.*' # requires PHP >=8.2
runs-on: ${{ matrix.os }}
env:
SYMFONY: ${{ matrix.symfony }}
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: date.timezone='UTC'
tools: composer:v2
- name: Require symfony
run: composer --no-update require symfony/symfony:"${SYMFONY}"
- name: Install dependencies
run: |
composer update
vendor/bin/simple-phpunit install
- name: Test
run: |
composer validate --strict --no-check-lock
vendor/bin/simple-phpunit --coverage-text --verbose