File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,38 @@ jobs:
1818 php-version : ${{ matrix.php-version }}
1919 coverage : xdebug, pcov
2020 tools : composer:v2
21-
2221 - uses : actions/checkout@v4
2322 with :
2423 fetch-depth : 0
25-
2624 - name : Install Dependencies
2725 run : composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
28-
2926 - name : Execute unit tests via PHPUnit with coverage
3027 run : vendor/bin/phpunit --coverage-clover build/logs/clover.xml
28+ - name : Export coverage report
29+ if : ${{ matrix.php-version == '8.4' }}
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : clover.xml
33+ path : build/logs
3134
35+ upload-to-coveralls :
36+ needs : tests-with-coverage
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : shivammathur/setup-php@v2
40+ with :
41+ php-version : " 8.4"
42+ tools : composer:v2
43+ - uses : actions/checkout@v4
44+ with :
45+ fetch-depth : 0
46+ - uses : actions/download-artifact@v4
47+ with :
48+ name : clover.xml
49+ path : build/logs
3250 - name : Upload coverage results to Coveralls
3351 env :
3452 COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3553 run : |
3654 composer global require php-coveralls/php-coveralls
37- php-coveralls --coverage_clover=build/logs/clover.xml -v
55+ php-coveralls --coverage_clover=build/logs/clover.xml -v --json_path=coveralls-upload.json
You can’t perform that action at this time.
0 commit comments