From 4f9452ce0ac34c0413237b48b5556d717ffa2c8f Mon Sep 17 00:00:00 2001 From: Sysix Date: Sun, 11 Feb 2024 18:55:02 +0100 Subject: [PATCH 1/2] use right format for coverage-badge generator --- .github/workflows/coverage-report.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml index a680eb0..4e53522 100644 --- a/.github/workflows/coverage-report.yml +++ b/.github/workflows/coverage-report.yml @@ -27,8 +27,8 @@ jobs: run: | composer install --prefer-dist - - name: Execute tests with coverage - run: vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-clover=coverage.xml + - name: Execute tests with coverage (for comment) + run: vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-clover=coverage.xml ' --coverage-cobertura=coverage-cobertura.xml - if: ${{ github.event_name == 'pull_request' }} name: Download artifact @@ -65,4 +65,4 @@ jobs: file-name: coverage.svg badge-branch: badges github-token: '${{ secrets.GITHUB_TOKEN }}' - coverage-file-name: ./coverage.xml \ No newline at end of file + coverage-file-name: ./coverage-cobertura.xml \ No newline at end of file From 825cc456d4a56904b7ce8bea85576adf8b811631 Mon Sep 17 00:00:00 2001 From: Sysix Date: Sun, 11 Feb 2024 18:56:22 +0100 Subject: [PATCH 2/2] use right format for coverage-badge generator --- .github/workflows/coverage-report.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml index 4e53522..afb782f 100644 --- a/.github/workflows/coverage-report.yml +++ b/.github/workflows/coverage-report.yml @@ -27,8 +27,8 @@ jobs: run: | composer install --prefer-dist - - name: Execute tests with coverage (for comment) - run: vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-clover=coverage.xml ' --coverage-cobertura=coverage-cobertura.xml + - name: Execute tests with coverage + run: vendor/bin/phpunit --configuration 'phpunit.xml' --coverage-clover=coverage.xml --coverage-cobertura=coverage-cobertura.xml - if: ${{ github.event_name == 'pull_request' }} name: Download artifact