@@ -15,32 +15,33 @@ jobs:
1515 # https://www.php.net/supported-versions.php
1616 php-versions : ['7.3', '7.4', '8.0']
1717 # https://phpunit.de/supported-versions.html
18- phpunit-versions : ['9.5.4']
18+ phpunit-version : ['9.5.4']
1919 experimental : [false]
2020 include :
2121 - php-versions : ' 7.1'
22- phpunit-versions : ' 7.5.20'
22+ phpunit-version : ' 7.5.20'
2323 experimental : false
2424 - php-versions : ' 7.2'
25- phpunit-versions : ' 8.5.15'
25+ phpunit-version : ' 8.5.15'
2626 experimental : false
2727 - 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'
32+ experimental : false
33+ - php-versions : ' 8.3'
34+ phpunit-version : ' 9.5.27'
2935 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
3536 steps :
3637 - name : Checkout
37- uses : actions/checkout@v2
38+ uses : actions/checkout@v4
3839
3940 - name : Setup PHP
4041 uses : shivammathur/setup-php@v2
4142 with :
4243 php-version : ${{ matrix.php-versions }}
43- tools : composer, phpunit:${{ matrix.phpunit-versions }}
44+ tools : composer, phpunit:${{ matrix.phpunit-version }}
4445 coverage : xdebug
4546 # Report deprecation errors.
4647 ini-values : error_reporting=E_ALL
5253
5354 - name : Get composer cache directory
5455 id : composer-cache
55- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
56+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
5657 - name : Cache dependencies
57- uses : actions/cache@v2
58+ uses : actions/cache@v3
5859 with :
5960 path : ${{ steps.composer-cache.outputs.dir }}
6061 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -69,27 +70,25 @@ jobs:
6970 run : phpunit --coverage-text --coverage-clover=coverage.xml
7071
7172 - 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
73+ if : matrix.php-versions == '8.2'
74+ uses : codecov/codecov-action@v4
75+ with :
76+ files : ./coverage.xml
77+ token : ${{ secrets.CODECOV_TOKEN }}
78+ fail_ci_if_error : true
8079
8180 build-docs :
8281 runs-on : ubuntu-latest
8382 steps :
8483 - name : Checkout
85- uses : actions/checkout@v2
84+ uses : actions/checkout@v4
8685 with :
8786 # fetch complete history so that the "last updated by" texts can be set correctly
8887 fetch-depth : 0
89- - name : Use Node.js 18 .x
90- uses : actions/setup-node@v1
88+ - name : Use Node.js 20 .x
89+ uses : actions/setup-node@v4
9190 with :
92- node-version : 18 .x
91+ node-version : 20 .x
9392 - name : Build Docs
9493 run : |
9594 cd docs
0 commit comments