Skip to content

Commit

Permalink
Upload test results to CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Nov 15, 2024
1 parent e778774 commit 17025fc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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
Expand Down

0 comments on commit 17025fc

Please sign in to comment.