We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51a371 commit 2a841abCopy full SHA for 2a841ab
.github/workflows/unit-tests.yml
@@ -40,4 +40,14 @@ jobs:
40
composer-options: --ignore-platform-reqs
41
42
- name: Run tests
43
- run: composer run phpunit -- --coverage-text
+ run: composer run phpunit -- --coverage-clover .phpunit.cache/clover.xml
44
+
45
+ - name: Upload coverage reports to Codecov
46
+ if: ${{ success() && matrix.php == '8.2' }}
47
+ uses: codecov/codecov-action@v3
48
+ env:
49
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
50
+ with:
51
+ files: ./.phpunit.cache/clover.xml
52
+ fail_ci_if_error: true
53
+ verbose: true
0 commit comments