File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Unit test coverage
2+
3+ on :
4+ - push
5+ - pull_request
6+
7+ jobs :
8+ tests :
9+ runs-on : ubuntu-latest
10+ name : Unit test coverage
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v2
15+
16+ - name : Setup PHP
17+ uses : shivammathur/setup-php@v2
18+ with :
19+ php-version : 7.4
20+ tools : composer:v2
21+ coverage : pcov
22+
23+ - name : Install dependencies
24+ run : composer update --prefer-stable --prefer-dist --no-interaction --no-progress
25+
26+ - name : Execute tests
27+ run : vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.clover
28+
29+ - name : Send coverage to Scrutinizer
30+ run : |
31+ wget https://scrutinizer-ci.com/ocular.phar
32+ php ocular.phar code-coverage:upload --format=php-clover coverage.clover
You can’t perform that action at this time.
0 commit comments