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 2727 ini-file : development
2828 - run : composer install
2929 - run : docker run --net=host -d redis
30- - run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text
30+ - run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
3131 if : ${{ matrix.php >= 7.3 }}
32- - run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
32+ - run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml - c phpunit.xml.legacy
3333 if : ${{ matrix.php < 7.3 }}
34+ - name : Check 100% code coverage
35+ shell : php {0}
36+ run : |
37+ <?php
38+ $metrics = simplexml_load_file('clover.xml')->project->metrics;
39+ exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);
You can’t perform that action at this time.
0 commit comments