Skip to content

Commit b9d476d

Browse files
committed
Update phpunit.xml.dist
1 parent 60cf501 commit b9d476d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/code_coverage.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
fetch-depth: 1
3131
- name: Setup PHP v${{ matrix.php }}
32-
uses: shivammathur/setup-php@v2
32+
uses: shivammathur/setup-php@v4
3333
with:
3434
php-version: ${{ matrix.php }}
3535
extensions: mbstring, exif, iconv, tokenizer, fileinfo, xdebug
@@ -45,17 +45,18 @@ jobs:
4545
./vendor/bin/phpunit --stop-on-failure --coverage-clover ./clover.xml -c ./phpunit_conf/coverage.xml.dist
4646
env:
4747
XDEBUG_MODE: coverage
48+
4849
- name: Make code coverage badge
4950
uses: timkrase/phpunit-coverage-badge@v1.2.1
5051
with:
51-
coverage_badge_path: output/coverage.svg
52-
push_badge: false
52+
coverage_badge_path: ./output/coverage.svg
53+
push_badge: true
5354

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

0 commit comments

Comments
 (0)