Skip to content

Commit

Permalink
Coverage badge experiment in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
alimranahmed committed Jun 22, 2024
1 parent d284cc0 commit 54a2d74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ jobs:
DB_USERNAME: root
DB_PASSWORD: password
run: |
vendor/bin/phpunit --coverage-clover clover.xml
vendor/bin/phpunit --coverage-clover tests/coverage/clover.xml
vendor/bin/pint
- name: Generate test coverage badge
uses: timkrase/phpunit-coverage-badge@v1.2.0
with:
coverage_badge_path: 'badge-coverage.svg'
coverage_badge_path: 'tests/coverage/badge-coverage.svg'
push_badge: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ _ide_helper.php
*.swp
*.swo
.phpunit.result.cache
/tests/coverage
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Test Coverage](https://raw.githubusercontent.com/alimranahmed/LaraBlog/main/badge-coverage.svg)](https://packagist.org/packages/alimranahmed/LaraBlog)
[![Test Coverage](https://raw.githubusercontent.com/alimranahmed/LaraBlog/main/tests/coverage/badge-coverage.svg)](https://packagist.org/packages/alimranahmed/LaraBlog)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)


Expand Down

0 comments on commit 54a2d74

Please sign in to comment.