Skip to content

Commit

Permalink
add coverage step (#102)
Browse files Browse the repository at this point in the history
* add coverage step

* add coverage step

Co-authored-by: Joe Green <[email protected]>
  • Loading branch information
mrjgreen and Joe Green committed May 4, 2022
1 parent 1385121 commit c1893b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ jobs:
- name: Run test suite
run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- name: Generate coverage
run: php vendor/bin/coveralls -v
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"php": ">=5.4.0"
},
"require-dev": {
"satooshi/php-coveralls": "^1.0",
"phpunit/phpunit": "^9.0"
"phpunit/phpunit": "^9.0",
"php-coveralls/php-coveralls": "^2.5"
}
}

0 comments on commit c1893b8

Please sign in to comment.