Skip to content

Commit

Permalink
Upload test results to CodeCov (#403)
Browse files Browse the repository at this point in the history
Upload test results to CodeCov
  • Loading branch information
aik099 authored Nov 19, 2024
1 parent e778774 commit c085ffb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 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
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
Expand Down

0 comments on commit c085ffb

Please sign in to comment.