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 8f64659 + 074745f commit 3cd5ac5Copy full SHA for 3cd5ac5
1 file changed
.github/workflows/ci.yml
@@ -29,10 +29,16 @@ jobs:
29
php-version: ${{ matrix.php }}
30
coverage: xdebug
31
- run: composer install
32
- - run: vendor/bin/phpunit --coverage-text
+ - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
33
if: ${{ matrix.php >= 7.3 }}
34
- - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
+ - run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy
35
if: ${{ matrix.php < 7.3 }}
36
+ - name: Check 100% code coverage
37
+ shell: php {0}
38
+ run: |
39
+ <?php
40
+ $metrics = simplexml_load_file('clover.xml')->project->metrics;
41
+ exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);
42
43
PHPUnit-hhvm:
44
name: PHPUnit (HHVM)
0 commit comments