From c085ffb1ad88caa190a276f7e48091c150902487 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 19 Nov 2024 17:29:57 +0200 Subject: [PATCH] Upload test results to CodeCov (#403) Upload test results to CodeCov --- .github/workflows/tests.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 86e57fe..7c44fe0 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 - if: "${{ matrix.with_coverage == true }}" + - name: Upload coverage to Codecov + if: ${{ matrix.with_coverage == true && !cancelled() }} 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