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 dc25560 commit f3e0201Copy full SHA for f3e0201
1 file changed
.github/workflows/ci.yml
@@ -26,7 +26,13 @@ jobs:
26
coverage: xdebug
27
- run: composer install
28
- run: docker run --net=host -d redis
29
- - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text
+ - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
30
if: ${{ matrix.php >= 7.3 }}
31
- - 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
32
if: ${{ matrix.php < 7.3 }}
33
+ - name: Check 100% code coverage
34
+ shell: php {0}
35
+ run: |
36
+ <?php
37
+ $metrics = simplexml_load_file('clover.xml')->project->metrics;
38
+ exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);
0 commit comments