File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ name: PHPUnit Tests
22
33on : [push, pull_request]
44
5- env :
6- CC_TEST_REPORTER_ID : 1d1f74ba47a7d5ca9fd110c771ddac54d67608513924b89df2b7ed8761541244
7-
85jobs :
96 test :
107 runs-on : ubuntu-latest
@@ -14,14 +11,15 @@ jobs:
1411
1512 steps :
1613 - name : Checkout code
17- uses : actions/checkout@v3
14+ uses : actions/checkout@v4
1815
1916 - name : Setup PHP
2017 uses : shivammathur/setup-php@v2
2118 with :
2219 php-version : ${{ matrix.php }}
2320 extensions : mbstring
2421 tools : composer
22+ coverage : xdebug
2523 env :
2624 COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2725
3129 - name : Run tests
3230 run : ./vendor/bin/phpunit --coverage-clover=clover.xml --configuration actions.phpunit.xml
3331
34- - name : Code coverage
35- run : |
36- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
37- chmod +x ./cc-test-reporter
38- ./cc-test-reporter after-build -t clover
39- if : matrix.php == '8.1'
32+ - name : Upload coverage reports to Codecov
33+ uses : codecov/codecov-action@v5
34+ with :
35+ token : ${{ secrets.CODECOV_TOKEN }}
36+ files : ./clover.xml
37+ flags : php-${{ matrix.php }}
38+ fail_ci_if_error : false
39+ verbose : true
40+ if : matrix.php == '8.1'
You can’t perform that action at this time.
0 commit comments