Skip to content

Commit

Permalink
php-coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Sep 27, 2021
1 parent e8f6bf6 commit d4e8a97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ jobs:

- name: Run tests with PHPUnit
run: vendor/bin/phpunit

# https://github.com/php-coveralls/php-coveralls#github-actions
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"require-dev": {
"phpunit/phpunit": "5.7.27",
"satooshi/php-coveralls": "*"
"php-coveralls/php-coveralls": "*"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</testsuite>
</testsuites>
<logging>
<!-- SEE: https://github.com/php-coveralls/php-coveralls#phpunit -->
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false" />
</logging>
Expand Down

0 comments on commit d4e8a97

Please sign in to comment.