Skip to content

Commit

Permalink
Merge pull request #45 from elecena/coveralls
Browse files Browse the repository at this point in the history
Upload code coverage reports to Coveralls
  • Loading branch information
macbre authored Jun 25, 2021
2 parents 301ebd5 + c4c7ede commit 1520370
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,11 @@ jobs:
- name: Test the code
run: composer run coverage

- name: Upload coverage results to Coveralls
if: matrix.php-versions == '8.0'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=.coverage.xml --json_path=/tmp/coverage.json -v
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
nano
[![Latest Stable Version](http://poser.pugx.org/elecena/nano/v)](https://packagist.org/packages/elecena/nano)
[![phpunit](https://github.com/elecena/nano/actions/workflows/tests.yaml/badge.svg)](https://github.com/elecena/nano/actions/workflows/tests.yaml)
[![Coverage Status](https://coveralls.io/repos/github/elecena/nano/badge.svg?branch=master)](https://coveralls.io/github/elecena/nano?branch=master)
====

## Testing
Expand Down

0 comments on commit 1520370

Please sign in to comment.