-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (59 loc) · 2.14 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: whatwedoMonitorBundle
on:
push: ~
pull_request: ~
jobs:
phpunit:
runs-on: ${{ matrix.operating-system }}
name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }} on ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php: [ '8.1', '8.2' ]
symfony: [ '6.3.*', '6.4.*', '7.0.*' ]
exclude:
- php: '8.1'
symfony: '7.0.*'
steps:
- uses: actions/checkout@master
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: flex
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v1
- name: Run test suite on PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
ACTION_PHPUNIT_PATH: ./vendor/bin/phpunit
with:
configuration: phpunit.xml.dist
php_extensions: xdebug
args: tests --coverage-clover ./coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
verbose: true
qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v1
- name: Initialize simple-phpunit
run: vendor/bin/simple-phpunit --version
- name: Check Code Styles
run: vendor/bin/ecs
- name: Check PHPStan
run: vendor/bin/phpstan analyse src tests