Skip to content

Commit

Permalink
Merge pull request #181 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 16d5347 + a51e1eb commit aed87e4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,22 @@ jobs:
- name: Run tests
if: "${{ matrix.implementation == 'http_kernel'}}"
run: |
vendor/bin/phpunit -v --coverage-clover=coverage.clover
vendor/bin/phpunit -v --coverage-clover=coverage.clover --log-junit junit.xml
- name: Run tests
if: "${{ matrix.implementation == 'http_client'}}"
run: |
vendor/bin/phpunit -c phpunit.http_client.xml -v --coverage-clover=coverage.clover
vendor/bin/phpunit -c phpunit.http_client.xml -v --coverage-clover=coverage.clover --log-junit junit.xml
- name: Upload code 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.clover

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit aed87e4

Please sign in to comment.