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 305d25e commit 53c49f8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: pcov
ini-values: |
pcov.enabled=1
coverage: pcov
php-version: '8.1'

- name: Cache dependencies
uses: actions/cache@v1
Expand Down Expand Up @@ -76,12 +72,5 @@ jobs:
DB_USERNAME: root
DB_PASSWORD: password
run: |
vendor/bin/phpunit --coverage-clover clover.xml
vendor/bin/phpunit
vendor/bin/pint
- name: Generate test coverage badge
uses: timkrase/phpunit-coverage-badge@v1.2.0
with:
coverage_badge_path: 'badge-coverage.svg'
push_badge: true
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 53c49f8

Please sign in to comment.