Skip to content

Commit

Permalink
Merge pull request #871 from aik099/codecov-tests-feat
Browse files Browse the repository at this point in the history
Upload test results to CodeCov
  • Loading branch information
aik099 authored Nov 20, 2024
2 parents 7e4edec + 3b9bed0 commit 44b5966
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 44b5966

Please sign in to comment.