Skip to content

Commit

Permalink
Upload code coverage to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
rojtjo committed Sep 11, 2024
1 parent 4f9c3f6 commit 9244d0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ jobs:

- name: Execute tests
run: vendor/bin/phpunit
env:
XDEBUG_MODE: coverage

- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/coverage.xml
verbose: true
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
<clover outputFile="build/coverage.xml"/>
</report>
</coverage>
<logging>
Expand Down

0 comments on commit 9244d0d

Please sign in to comment.