File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,17 @@ jobs:
58
58
mkdir -p build/logs
59
59
vendor/bin/phpunit --configuration ${{ matrix.phpunit_config }} --coverage-clover build/logs/clover.xml
60
60
61
- - name : Downloading Scrutinizer CI binary
62
- run : wget https://scrutinizer-ci.com/ocular.phar
63
-
64
61
- name : Upload coverage to Codecov
65
62
uses : codecov/codecov-action@v3
66
63
67
- - name : Uploading code coverage to Scrutinizer CI
68
- run : php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
64
+ - name : Upload Coverage to Scrutinizer CI (PHP < 8.0)
65
+ if : " ${{ matrix.php < '8.0' }}"
66
+ run : |
67
+ wget https://scrutinizer-ci.com/ocular.phar
68
+ php ocular.phar code-coverage:upload --repository=g/console-helpers/code-insight --format=php-clover coverage.clover
69
69
70
+ - name : Upload Coverage to Scrutinizer CI (PHP >= 8.0)
71
+ if : " ${{ matrix.php >= '8.0' }}"
72
+ run : |
73
+ composer require scrutinizer/ocular
74
+ vendor/bin/ocular code-coverage:upload --repository=g/console-helpers/code-insight --format=php-clover coverage.clover
You can’t perform that action at this time.
0 commit comments