Skip to content

Commit

Permalink
Merge pull request #10 from MikeGarde/dep-update
Browse files Browse the repository at this point in the history
Adding code coverage report
  • Loading branch information
MikeGarde committed May 17, 2024
2 parents 34b9976 + 570a64b commit 03c7d7c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,10 @@ jobs:

- name: Run tests
run: composer run-script test

- name: Upload coverage reports to Codecov
if: ${{ matrix.php == '8.3' }}
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./tmp/clover.xml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![GitHub](https://img.shields.io/github/license/mikegarde/country-codes.svg)](https://github.com/MikeGarde/country-codes)
[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/mikegarde/country-codes.svg)](https://github.com/MikeGarde/country-codes)
[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/mikegarde/country-codes.svg)](http://bit.ly/2Yuoi8w)
[![codecov](https://codecov.io/github/MikeGarde/country-codes/graph/badge.svg?token=EKO1IUVFV3)](https://codecov.io/github/MikeGarde/country-codes)

# Country Codes & US States

Expand Down
1 change: 1 addition & 0 deletions config/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
highLowerBound="90"/>
<text outputFile="./tmp/coverage.txt"
showUncoveredFiles="true"/>
<clover outputFile="./tmp/clover.xml"/>
</report>
</coverage>
<source>
Expand Down

0 comments on commit 03c7d7c

Please sign in to comment.