@@ -15,32 +15,30 @@ jobs:
15
15
# https://www.php.net/supported-versions.php
16
16
php-versions : ['7.3', '7.4', '8.0']
17
17
# https://phpunit.de/supported-versions.html
18
- phpunit-versions : ['9.5.4']
18
+ phpunit-version : ['9.5.4']
19
19
experimental : [false]
20
20
include :
21
21
- php-versions : ' 7.1'
22
- phpunit-versions : ' 7.5.20'
22
+ phpunit-version : ' 7.5.20'
23
23
experimental : false
24
24
- php-versions : ' 7.2'
25
- phpunit-versions : ' 8.5.15'
25
+ phpunit-version : ' 8.5.15'
26
26
experimental : false
27
27
- php-versions : ' 8.1'
28
- phpunit-versions : ' 9.5.14'
28
+ phpunit-version : ' 9.5.27'
29
+ experimental : false
30
+ - php-versions : ' 8.2'
31
+ phpunit-version : ' 9.5.27'
29
32
experimental : false
30
-
31
- # PHPUnit's dependencies do not support PHP 8.2 yet.
32
- # - php-versions: '8.2'
33
- # phpunit-versions: '9.5.11'
34
- # experimental: true
35
33
steps :
36
34
- name : Checkout
37
- uses : actions/checkout@v2
35
+ uses : actions/checkout@v3
38
36
39
37
- name : Setup PHP
40
38
uses : shivammathur/setup-php@v2
41
39
with :
42
40
php-version : ${{ matrix.php-versions }}
43
- tools : composer, phpunit:${{ matrix.phpunit-versions }}
41
+ tools : composer, phpunit:${{ matrix.phpunit-version }}
44
42
coverage : xdebug
45
43
# Report deprecation errors.
46
44
ini-values : error_reporting=E_ALL
52
50
53
51
- name : Get composer cache directory
54
52
id : composer-cache
55
- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
53
+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
56
54
- name : Cache dependencies
57
- uses : actions/cache@v2
55
+ uses : actions/cache@v3
58
56
with :
59
57
path : ${{ steps.composer-cache.outputs.dir }}
60
58
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -69,20 +67,17 @@ jobs:
69
67
run : phpunit --coverage-text --coverage-clover=coverage.xml
70
68
71
69
- name : Upload coverage data to codecov
72
- if : matrix.php-versions == '7.4'
73
- uses : codecov/codecov-action@v1
74
-
75
- - name : Upload coverage data to scrutinizer
76
- if : matrix.php-versions == '7.4'
77
- run : |
78
- wget https://scrutinizer-ci.com/ocular.phar
79
- php ocular.phar code-coverage:upload --format=php-clover coverage.xml
70
+ if : matrix.php-versions == '8.1'
71
+ uses : codecov/codecov-action@v3
72
+ with :
73
+ files : ./coverage.xml
74
+ fail_ci_if_error : true
80
75
81
76
build-docs :
82
77
runs-on : ubuntu-latest
83
78
steps :
84
79
- name : Checkout
85
- uses : actions/checkout@v2
80
+ uses : actions/checkout@v3
86
81
with :
87
82
# fetch complete history so that the "last updated by" texts can be set correctly
88
83
fetch-depth : 0
0 commit comments