File tree Expand file tree Collapse file tree 2 files changed +31
-5
lines changed
Expand file tree Collapse file tree 2 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 1+ name : Code Coverage
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ coverage :
7+ name : Report code coverage
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v4
12+
13+ - name : Setup PHP
14+ uses : shivammathur/setup-php@v2
15+ with :
16+ php-version : ' 8.2'
17+ coverage : xdebug
18+
19+ - name : Install Composer dependencies
20+ uses : ramsey/composer-install@v2
21+
22+ - name : Run test suite
23+ run : vendor/bin/simple-phpunit --coverage-text --coverage-clover=tests/coverage
24+
25+ - name : Publish to Coveralls
26+ uses : coverallsapp/github-action@v2
27+ with :
28+ files : tests/coverage
29+ format : clover
30+ fail-on-error : false
Original file line number Diff line number Diff line change 3535 "scripts" : {
3636 "test" : [
3737 " simple-phpunit --testdox"
38- ],
39- "test-coverage" : [
40- " phpdbg -qrr -d memory_limit=-1 ./vendor/bin/simple-phpunit --coverage-html=tests/coverage --colors=always"
4138 ]
4239 },
4340 "scripts-descriptions" : {
44- "test" : " Run all test suites." ,
45- "test-coverage" : " Generate code coverage reports in tests/coverage."
41+ "test" : " Run all test suites."
4642 },
4743 "config" : {
4844 "preferred-install" : " dist" ,
You can’t perform that action at this time.
0 commit comments