We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e29b167 + 3e6b071 commit 3b76faeCopy full SHA for 3b76fae
.github/workflows/ci.yml
@@ -28,7 +28,13 @@ jobs:
28
php-version: ${{ matrix.php }}
29
coverage: xdebug
30
- run: composer install
31
- - run: vendor/bin/phpunit --coverage-text
+ - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
32
if: ${{ matrix.php >= 7.3 }}
33
- - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
+ - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy --coverage-clover=clover.xml
34
if: ${{ matrix.php < 7.3 }}
35
+ - name: Check 100% code coverage
36
+ shell: php {0}
37
+ run: |
38
+ <?php
39
+ $metrics = simplexml_load_file('clover.xml')->project->metrics;
40
+ exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);
0 commit comments