Skip to content

Commit 170629c

Browse files
committed
Add Codecov report upload to GitHub workflow
The updated GitHub workflow now includes a step to upload coverage reports to Codecov. This ensures that code coverage metrics are generated and uploaded each time a test run is completed during the CI process. It uses the `codecov/codecov-action@v3` action and the `CODECOV_TOKEN` secret for authentication.
1 parent f9355e2 commit 170629c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: .github/workflows/phpunit.yml

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
run: composer install
1717
- name: Run phpunit
1818
run: composer test-unit -- --coverage-clover=coverage.xml
19+
- name: Upload coverage reports to Codecov
20+
uses: codecov/codecov-action@v3
21+
env:
22+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
23+
1924
integration-test:
2025
runs-on: ubuntu-latest
2126
steps:

0 commit comments

Comments
 (0)