File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build :
13
- strategy :
13
+ strategy :
14
14
matrix :
15
15
php : ['7.2', '7.3', '7.4']
16
16
phpunit : ['8.0', '9.0']
17
+ composer-arg : ['']
18
+ include :
19
+ - php : ' 8.0'
20
+ phpunit : ' 9.0'
21
+ composer-arg : ' ignore-platform-req=php'
17
22
exclude :
23
+ - php : ' 8.0'
24
+ phpunit : ' 8.0'
18
25
- php : ' 7.2'
19
26
phpunit : ' 9.0'
20
27
runs-on : ubuntu-latest
21
28
29
+ continue-on-error : ${{ matrix.php == '8.0' }}
30
+ name : PHP ${{ matrix.php }}, PHPUnit ${{ matrix.phpunit }}
31
+
22
32
steps :
23
33
- uses : actions/checkout@v1
24
-
34
+
25
35
- name : Setup PHP
26
36
uses : shivammathur/setup-php@v1
27
37
with :
28
38
php-version : ${{ matrix.php }}
29
39
extensions : mbstring, intl, json
30
40
coverage : pcov
31
-
41
+
42
+ tools : composer:v2
43
+
32
44
- name : Validate composer.json and composer.lock
33
45
run : composer validate
34
46
@@ -37,10 +49,10 @@ jobs:
37
49
composer require --no-update --dev phpunit/phpunit ~${{ matrix.phpunit }}
38
50
39
51
- name : Install dependencies
40
- run : composer install --prefer-dist --no-progress --no-suggest
52
+ run : composer install --prefer-dist --no-progress --no-suggest --${{ matrix.composer-arg }}
41
53
42
54
# - name: Run type checker
43
55
# run: ./vendor/bin/psalm
44
-
56
+
45
57
- name : Run unit tests
46
58
run : ./vendor/bin/phpunit --testdox
Original file line number Diff line number Diff line change 9
9
}
10
10
],
11
11
"require" : {
12
- "php" : " ^7.1" ,
12
+ "php" : " ^7.1 || ^8.0 " ,
13
13
"helmich/phpunit-json-assert" : " ^3.2" ,
14
14
"psr/http-message" : " ^1.0"
15
15
},
You can’t perform that action at this time.
0 commit comments