Skip to content

Commit 4134a2a

Browse files
feat(ci): add Codacy coverage reporting to CI pipeline
Add codacy-coverage-reporter-action to upload Go test coverage reports to Codacy for code quality tracking. Report runs on all job outcomes using force-coverage-parser: go.
1 parent 6468e24 commit 4134a2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ jobs:
5656
name: go-coverage
5757
fail_ci_if_error: false
5858

59+
- name: 📈 Report coverage to Codacy
60+
if: always()
61+
uses: codacy/codacy-coverage-reporter-action@v1
62+
with:
63+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
64+
coverage-reports: cover.out
65+
force-coverage-parser: go
66+
5967
- name: 📦 Upload Go test artifacts on failure
6068
if: failure()
6169
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)