From 17025fcc244ef64938ef15ef7f625dd740c3c4c7 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 15 Nov 2024 16:35:52 +0200 Subject: [PATCH 1/4] Upload test results to CodeCov --- .github/workflows/tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 86e57fe..11ebb36 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -95,7 +95,7 @@ jobs: WEB_FIXTURES_BROWSER: firefox DRIVER_MACHINE_BASE_PATH: /fixtures/ run: | - vendor/bin/phpunit -v --coverage-clover=coverage.xml + vendor/bin/phpunit -v --coverage-clover=coverage.xml --log-junit junit.xml - name: Run tests without Coverage if: "${{ matrix.with_coverage == false }}" @@ -107,13 +107,19 @@ jobs: run: | vendor/bin/phpunit -v - - name: Upload coverage + - name: Upload coverage to Codecov if: "${{ matrix.with_coverage == true }}" uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml + - name: Upload test results to Codecov + if: ${{ matrix.with_coverage == true && !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + - name: Archive logs artifacts if: ${{ failure() }} uses: actions/upload-artifact@v4 From 26035fb5c3410f51980dd23dcadbed8a312873ee Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 15 Nov 2024 16:43:38 +0200 Subject: [PATCH 2/4] Upload code coverage also on failing tests --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 11ebb36..7c44fe0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -108,7 +108,7 @@ jobs: vendor/bin/phpunit -v - name: Upload coverage to Codecov - if: "${{ matrix.with_coverage == true }}" + if: ${{ matrix.with_coverage == true && !cancelled() }} uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} From c8989725096d5afe707e930f19bad272b807b414 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 15 Nov 2024 16:54:05 +0200 Subject: [PATCH 3/4] [debug] Try to understand, why test result upload fails --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7c44fe0..a5b8052 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -119,6 +119,7 @@ jobs: uses: codecov/test-results-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} + verbose: true - name: Archive logs artifacts if: ${{ failure() }} From f41d49450df5487d45515f850f9161e37708556f Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 19 Nov 2024 17:28:13 +0200 Subject: [PATCH 4/4] Revert "[debug] Try to understand, why test result upload fails" This reverts commit c8989725096d5afe707e930f19bad272b807b414. --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a5b8052..7c44fe0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -119,7 +119,6 @@ jobs: uses: codecov/test-results-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} - verbose: true - name: Archive logs artifacts if: ${{ failure() }}