Skip to content

Commit

Permalink
Configure code coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Oct 1, 2024
1 parent 2fb8ec8 commit 1381e9a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,20 @@ jobs:

- uses: php-actions/composer@v6 # or alternative dependency management


- name: Run PHPUnit
run: vendor/bin/phpunit
run: vendor/bin/phpunit --coverage-clover ./coverage.xml
env:
XDEBUG_MODE: coverage

- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true


cs:
name: Coding standards
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
coverage
coverage.txt
.phpcs-cache
coverage.xml

0 comments on commit 1381e9a

Please sign in to comment.