Skip to content

Commit

Permalink
Merge pull request #139 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 384bae4 + 48eb6a5 commit b1d132c
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 @@ -67,7 +67,7 @@ jobs:
BS_ACCESS_KEY: ${{ secrets.BS_ACCESS_KEY }}
if: "${{ matrix.with_coverage == true }}"
run: |
vendor/bin/phpunit -v --coverage-clover=coverage.clover
vendor/bin/phpunit -v --coverage-clover=coverage.clover --log-junit junit.xml
- name: Run tests without Coverage
env:
Expand All @@ -79,12 +79,18 @@ jobs:
run: |
vendor/bin/phpunit -v
- name: Upload Coverage to CodeCov
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 }}

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

- name: Upload Coverage to Scrutinizer CI (PHP < 8.0)
if: "${{ matrix.php < '8.0' && matrix.with_coverage == true }}"
run: |
Expand Down

0 comments on commit b1d132c

Please sign in to comment.