File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 27
27
ini-file : development
28
28
- run : composer install
29
29
- run : docker run --net=host -d redis
30
- - run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text
30
+ - run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
31
31
if : ${{ matrix.php >= 7.3 }}
32
- - run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
32
+ - run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml - c phpunit.xml.legacy
33
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);
You can’t perform that action at this time.
0 commit comments