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.
This commit is contained in:
2026-04-29 07:05:40 +02:00
parent 46493a3896
commit ba5169db69
3 changed files with 14 additions and 19 deletions
+1 -1
View File
@@ -50,4 +50,4 @@ Pre-commit hooks enforce:
## CI/CD
GitLab CI pipeline runs: dependency download → tests with race detector → vulnerability scanning → Codecov upload.
Self-hosted Gitea Actions (`.gitea/workflows/`) run: dependency download → tests with race detector → coverage check → vulnerability scanning → coverage baseline upload/comparison.