From 3b9bed0d3a6d76ffc14b95549a55aeacda6f5590 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 20 Nov 2024 11:28:09 +0200 Subject: [PATCH] Upload test results to CodeCov --- .github/workflows/tests.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e5e89bdc..f7fd638a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -74,9 +74,17 @@ jobs: - name: Run tests env: SYMFONY_DEPRECATIONS_HELPER: "${{ matrix.symfony_deprecations_helper }}" - run: vendor/bin/phpunit -v --coverage-clover=coverage.xml + run: vendor/bin/phpunit -v --coverage-clover=coverage.xml --log-junit junit.xml - - name: Upload coverage - uses: codecov/codecov-action@v3 + - name: Upload coverage to Codecov + if: ${{ !cancelled() }} + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml + + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }}