From 0dde37be0fb61fed60bf505f4c8c80ebced17076 Mon Sep 17 00:00:00 2001 From: Frederik Schmitt Date: Tue, 3 Oct 2023 10:05:08 +0200 Subject: [PATCH 1/2] Add codecov upload --- .github/workflows/php-unit.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/php-unit.yml b/.github/workflows/php-unit.yml index 6404f69..2a5beeb 100644 --- a/.github/workflows/php-unit.yml +++ b/.github/workflows/php-unit.yml @@ -21,10 +21,10 @@ jobs: - name: Run unit tests run: vendor/bin/phpunit --testsuite unit - #- name: Generate code coverage - # uses: codecov/codecov-action@v3 - # with: - # files: phpunit.cobertura.xml + - name: Upload coverage reports + uses: codecov/codecov-action@v3 + with: + files: phpunit.cobertura.xml - name: Generate code coverage report uses: irongut/CodeCoverageSummary@v1.3.0 From 859f093558cbc1fd9d5f20fe7d6bc2eb285e462e Mon Sep 17 00:00:00 2001 From: Frederik Schmitt Date: Tue, 3 Oct 2023 10:08:03 +0200 Subject: [PATCH 2/2] Remove old coverage report --- .github/workflows/php-unit.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/php-unit.yml b/.github/workflows/php-unit.yml index 2a5beeb..7e173ad 100644 --- a/.github/workflows/php-unit.yml +++ b/.github/workflows/php-unit.yml @@ -25,18 +25,3 @@ jobs: uses: codecov/codecov-action@v3 with: files: phpunit.cobertura.xml - - - name: Generate code coverage report - uses: irongut/CodeCoverageSummary@v1.3.0 - with: - format: markdown - filename: phpunit.cobertura.xml - badge: true - output: both - - - name: Add Coverage PR Comment - uses: marocchino/sticky-pull-request-comment@v2 - if: github.event_name == 'pull_request' - with: - recreate: true - path: code-coverage-results.md