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 377f9a6 + f3e0201 commit 6a883a9Copy full SHA for 6a883a9
1 file changed
.github/workflows/ci.yml
@@ -27,7 +27,13 @@ jobs:
27
ini-file: development
28
- run: composer install
29
- run: docker run --net=host -d redis
30
- - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text
+ - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
31
if: ${{ matrix.php >= 7.3 }}
32
- - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
+ - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy
33
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);
0 commit comments