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.
1 parent 2cf9795 commit f1c0ecaCopy full SHA for f1c0eca
.github/workflows/ci.yml
@@ -31,7 +31,14 @@ jobs:
31
coverage: xdebug
32
ini-file: development
33
- run: composer install
34
- - run: vendor/bin/phpunit --coverage-text
+ - run: docker pull busybox:latest
35
+ - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
36
if: ${{ matrix.php >= 7.3 }}
- - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
37
+ - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy
38
if: ${{ matrix.php < 7.3 }}
39
+ - name: Check 100% code coverage
40
+ shell: php {0}
41
+ run: |
42
+ <?php
43
+ $metrics = simplexml_load_file('clover.xml')->project->metrics;
44
+ exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);
0 commit comments