-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (40 loc) · 1.23 KB
/
ci.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
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 7 * * 1'
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4', '8.0', '8.1']
sf: ['5.4.*', '6.4.*', '7.0.*']
exclude:
- php: '7.4'
sf: '6.4.*'
- php: '8.0'
sf: '6.4.*'
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v6
with:
php_version: '${{ matrix.php }}'
command: require symfony/serializer:${{ matrix.sf }} --no-update
- uses: php-actions/composer@v6
with:
php_version: '${{ matrix.php }}'
command: update
- uses: php-actions/phpunit@v3
with:
configuration: phpunit.xml.dist
memory_limit: 256M
php_version: '${{ matrix.php }}'
- uses: php-actions/phpstan@v3
with:
php_version: '${{ matrix.php }}'
level: max
path: src/