Skip to content

Commit

Permalink
send code coverage to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Aug 31, 2023
1 parent b9cab3a commit 4b1b18a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,17 @@ jobs:
composer-options: --ignore-platform-reqs

- name: Run phpunit tests
run: composer run phpunit -- --coverage-text
run: composer run phpunit -- --coverage-clover ./.code-coverage/clover.xml

- name: Run static code analysis
# Do not run phpstan on lowest php version
if: ${{ matrix.prefer-versions == 'latest' }}
run: composer run phpstan -- --error-format=github

- name: Send coverage report to Codecov
if: ${{ success() && matrix.php == '8.2' }}
uses: codecov/codecov-action@v3
with:
files: ./.code-coverage/clover.xml
fail_ci_if_error: true
verbose: true

0 comments on commit 4b1b18a

Please sign in to comment.