File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Coverage
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+
7+ jobs :
8+ run :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v2
14+
15+ - name : Setup PHP
16+ uses : shivammathur/setup-php@v2
17+ with :
18+ php-version : ' 7.2'
19+ coverage : xdebug
20+
21+ - name : Install dependencies
22+ run : composer update --prefer-dist --no-progress
23+
24+ - name : Run PHPUnit test suite
25+ run : ./vendor/bin/phpunit --configuration ./tests/phpunit.xml
26+
27+ - name : Update code coverage badge
28+ uses : timkrase/phpunit-coverage-badge@v1.0.0
29+ with :
30+ report : ./tests/clover.xml
31+ report_type : clover
32+ coverage_badge_path : ./.github/coverage.svg
33+ push_badge : true
34+ repo_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments