Skip to content

Commit

Permalink
report code coverage for unit tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippImhof authored Dec 18, 2023
1 parent f2dd9eb commit 6d7b4fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
ini-values: max_input_vars=5000
coverage: none
coverage: xdebug

- name: Initialise moodle-plugin-ci
run: |
Expand All @@ -92,7 +92,11 @@ jobs:

- name: PHPUnit tests
if: ${{ always() }}
run: moodle-plugin-ci phpunit --fail-on-warning
run: |
moodle-plugin-ci phpunit --fail-on-warning --coverage-clover
moodle-plugin-ci coveralls-upload
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Behat is done separately to allow app testing as well
#- name: Behat features
Expand Down

0 comments on commit 6d7b4fb

Please sign in to comment.