Commit Graph

2 Commits

Author SHA1 Message Date
argoyle ba5169db69 fix(ci): use go-test-coverage binary directly to fix Gitea Actions
dbsetup / vulnerabilities (pull_request) Successful in 2m19s
dbsetup / test (pull_request) Successful in 2m31s
pre-commit / pre-commit (pull_request) Successful in 7m20s
vladopajic/go-test-coverage@v2 (v2.18.5+) switched composite-action
inputs from CLI args to env-var mapping, which Gitea act_runner does
not expand reliably. The literal string `${{ inputs.config }}` was
passed to the binary, breaking 'Check coverage' steps.

Replace the action with a direct go install + binary invocation
(matching Frostmoln pattern) and use the tool's --github-action-output
to drop manual go tool cover -func calculations.
2026-04-29 07:05:40 +02:00
argoyle d0e92e767a ci: add code coverage integration
dbsetup / test (pull_request) Successful in 7m10s
dbsetup / vulnerabilities (pull_request) Successful in 6m34s
pre-commit / pre-commit (pull_request) Successful in 11m20s
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>
2026-01-28 13:03:07 +01:00