File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,21 @@ jobs:
3636 uses : shivammathur/setup-php@v2
3737 with :
3838 php-version : ${{ matrix.php }}
39+ extensions : xdebug
3940 tools : composer:v2
40- coverage : none
41+ coverage : xdebug
4142
4243 - name : Install dependencies
4344 run : composer update --no-interaction --no-progress --prefer-dist --no-scripts
4445
4546 - name : Execute tests
46- run : vendor/bin/phpunit --testsuite "Unit Test Suite"
47-
47+ run : XDEBUG_MODE=coverage vendor/bin/phpunit --testsuite "Unit Test Suite" --coverage-clover coverage.xml
4848
49+ - name : Coverage Report as Comment (Clover)
50+ if : github.event_name == 'pull_request'
51+ uses : lucassabreu/comment-coverage-clover@main
52+ with :
53+ file : coverage.xml
4954
5055 # Job to check if certain files have changed
5156 what-has-changed :
You can’t perform that action at this time.
0 commit comments