Skip to content

Commit

Permalink
Try to add test coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
otsch committed Mar 10, 2022
1 parent 31d2056 commit 4577f97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run tests
run: composer test
run: vendor/bin/pest --coverage-clover clover.xml

- name: Generate test coverage badge
uses: timkrase/[email protected]
with:
coverage_badge_path: 'badge-coverage.svg'
push_badge: true
repo_token: ${{ secrets.GITHUB_TOKEN }}

stan:
name: PHPStan
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Library for rapid web crawler/scraper development

[![Test Coverage](https://raw.githubusercontent.com/crwlrsoft/crawler/main/badge-coverage.svg)](https://packagist.org/packages/crwlr/crawler)

0 comments on commit 4577f97

Please sign in to comment.