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 b407f75
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,22 @@ jobs:

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

- name: Run PHPUnit
run: vendor/bin/phpunit
- name: PHPUnit Tests
uses: php-actions/phpunit@v4
env:
XDEBUG_MODE: coverage
with:
php_extensions: xdebug
args: tests --coverage-clover ./coverage.xml

- name: Upload to Codecov
uses: codecov/codecov-action@v2
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 b407f75

Please sign in to comment.