File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 6
6
test-suite :
7
7
name : PHPStan, PHPcs & Testsuite
8
8
runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ php-versions : [ '8.1', '8.2' ]
12
+ phpunit-versions : [ '10.3', '11.0' ]
13
+ exclude :
14
+ - php-versions : 8.1
15
+ phpunit-versions : 11.0
9
16
10
17
steps :
11
18
# https://github.com/marketplace/actions/setup-php-action
12
- - name : Setup PHP 8.1 with Xdebug 3.x
19
+ - name : Setup PHP ${{ matrix.php-versions }} with Xdebug 3.x
13
20
uses : shivammathur/setup-php@v2
14
21
with :
15
- php-version : ' 8.1 '
22
+ php-version : ${{ matrix.php-versions }}
16
23
coverage : xdebug
17
24
18
25
# https://github.com/marketplace/actions/checkout
19
26
- name : Checkout code
20
27
uses : actions/checkout@v3
21
28
29
+ - name : Install PHPUnit ${{ matrix.phpunit-versions }}
30
+ run : |
31
+ rm composer.lock
32
+ composer require phpunit/phpunit ^${{ matrix.phpunit-versions }}
33
+
22
34
- name : Install dependencies
23
35
run : composer install --prefer-dist
24
36
25
37
- name : Run PHPStan
26
38
run : vendor/bin/phpstan analyse
27
39
28
- - name : Run PHPcs fixer dry-run
29
- run : vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --config=.php-cs-fixer.dist.php
40
+ # - name: Run PHPcs fixer dry-run
41
+ # run: vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --config=.php-cs-fixer.dist.php
30
42
31
43
- name : Run test suite
32
44
run : vendor/bin/phpunit --fail-on-incomplete --log-junit junit.xml --coverage-clover clover.xml
Original file line number Diff line number Diff line change 16
16
],
17
17
"require" : {
18
18
"php" : " ^8.1" ,
19
- "nunomaduro/collision" : " ^7.8" ,
19
+ "nunomaduro/collision" : " ^7.8|^8.0 " ,
20
20
"phpunit/phpunit" : " ^10.3|^11.0"
21
21
},
22
22
"autoload" : {
You can’t perform that action at this time.
0 commit comments