ci: add code coverage integration
otelsetup / vulnerabilities (pull_request) Successful in 2m49s
otelsetup / test (pull_request) Successful in 4m11s
pre-commit / pre-commit (pull_request) Successful in 6m22s

Add go-test-coverage for coverage threshold enforcement. Coverage data
is uploaded as artifacts on main branch and compared against baseline
in PRs using shell script that gracefully handles first run without
baseline. PR comments show coverage percentage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-28 13:03:07 +01:00
parent a66446b1df
commit 8540caba8c
2 changed files with 68 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# Coverage configuration for go-test-coverage
# https://github.com/vladopajic/go-test-coverage
profile: coverage.txt
threshold:
file: 0
package: 0
total: 0
exclude:
paths:
- _test\.go$