File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,16 @@ jobs:
2929 php-version : ${{ matrix.php }}
3030 coverage : xdebug
3131 - run : composer install
32- - run : vendor/bin/phpunit --coverage-text
32+ - run : vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
3333 if : ${{ matrix.php >= 7.3 }}
34- - run : vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
34+ - run : vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml - c phpunit.xml.legacy
3535 if : ${{ matrix.php < 7.3 }}
36+ - name : Check 100% code coverage
37+ shell : php {0}
38+ run : |
39+ <?php
40+ $metrics = simplexml_load_file('clover.xml')->project->metrics;
41+ exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);
3642
3743 PHPUnit-hhvm :
3844 name : PHPUnit (HHVM)
You can’t perform that action at this time.
0 commit comments