From b9d476dc3d8802ad839b07ee4fe9694600ca8267 Mon Sep 17 00:00:00 2001 From: Iman Ghafoori Date: Fri, 14 Jun 2024 19:48:04 +0330 Subject: [PATCH] Update phpunit.xml.dist --- .github/workflows/code_coverage.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index 41dd3dd..738fd95 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -29,7 +29,7 @@ jobs: with: fetch-depth: 1 - name: Setup PHP v${{ matrix.php }} - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@v4 with: php-version: ${{ matrix.php }} extensions: mbstring, exif, iconv, tokenizer, fileinfo, xdebug @@ -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/phpunit-coverage-badge@v1.2.1 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'