Skip to content

Commit

Permalink
add codecov badge
Browse files Browse the repository at this point in the history
  • Loading branch information
kpicaza committed Apr 11, 2021
1 parent c3db934 commit d17c559
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/phpunit.yml
Expand Up @@ -56,4 +56,10 @@ jobs:
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Tests"
run: "vendor/bin/phpunit"
run: "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover coverage.xml"

- name: "Send codecov report0"
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./coverage.xml
3 changes: 3 additions & 0 deletions README.md
@@ -1,6 +1,7 @@
# Pheature Flags Toggle CRUD

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Test Coverage][ico-coverage]][link-coverage]
[![Total Downloads][ico-downloads]][link-downloads]

Pheature flags toggle CRUD implementation
Expand All @@ -26,3 +27,5 @@ knowledge to the community. For this reason we release all our packages under [B
[link-packagist]: https://packagist.org/packages/pheature/toggle-crud
[ico-downloads]: https://img.shields.io/packagist/dt/pheature/toggle-crud.svg?style=flat-square
[link-downloads]: https://packagist.org/packages/pheature/toggle-crud
[ico-coverage]: https://codecov.io/gh/pheature-flags/toggle-crud/branch/1.0.x/graph/badge.svg?token=DTQIQUZ106
[link-coverage]: https://codecov.io/gh/pheature-flags/toggle-crud

0 comments on commit d17c559

Please sign in to comment.