Skip to content

Commit

Permalink
Upload test results to CodeCov (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 authored Nov 20, 2024
1 parent ca55cde commit 9640be7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,23 @@ jobs:
WEB_FIXTURES_BROWSER: ${{ matrix.browser }}
DRIVER_MACHINE_BASE_PATH: /fixtures/
run: |
vendor/bin/phpunit -v --coverage-clover=coverage.xml --colors=always --testdox
vendor/bin/phpunit -v --coverage-clover=coverage.xml --log-junit junit.xml --colors=always --testdox
- name: Upload coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
# See https://github.com/nektos/act#skipping-steps
if: ${{ !env.ACT }}
# See https://nektosact.com/usage/index.html#skipping-steps
if: ${{ !env.ACT && !cancelled() }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml

- name: Upload test results to Codecov
# See https://nektosact.com/usage/index.html#skipping-steps
if: ${{ !env.ACT && !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Extract docker logs
if: ${{ failure() }}
run: |
Expand Down

0 comments on commit 9640be7

Please sign in to comment.