Skip to content

Commit

Permalink
Update phpunit.xml.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Jun 14, 2024
1 parent 60cf501 commit e13cb02
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup PHP v${{ matrix.php }}
Expand All @@ -45,17 +45,18 @@ jobs:
./vendor/bin/phpunit --stop-on-failure --coverage-clover ./clover.xml -c ./phpunit_conf/coverage.xml.dist
env:
XDEBUG_MODE: coverage

- name: Make code coverage badge
uses: timkrase/[email protected]
with:
coverage_badge_path: output/coverage.svg
push_badge: false
coverage_badge_path: ./output/coverage.svg
push_badge: true

- name: Git push to image-data branch
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./output
publish_branch: image-data
publish_branch: coverage-badge
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

0 comments on commit e13cb02

Please sign in to comment.