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