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 af95a8d commit 53454db
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Pheature Flags Toggle Core

[![Type coverage][ico-psalm]][link-psalm]
[![Maintainability][ico-mantain]][link-mantain]

Pheature flags toggle core library, take a look to our [main package]() to see our roadmap and project status.

Expand All @@ -27,3 +28,5 @@ knowledge to the community. For this reason we release all our packages under [B

[ico-psalm]: https://shepherd.dev/github/pheature-flags/toggle-core/coverage.svg
[link-psalm]: https://shepherd.dev/github/pheature-flags/toggle-core
[ico-mantain]: https://codecov.io/gh/pheature-flags/toggle-core/branch/1.0.x/graph/badge.svg?token=DTQIQUZ106
[link-mantain]: https://codecov.io/gh/pheature-flags/toggle-core

0 comments on commit 53454db

Please sign in to comment.