fix(ci): use go-test-coverage binary directly to fix Gitea Actions #88
Reference in New Issue
Block a user
Delete Branch "fix/coverage-tool-binary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
vladopajic/go-test-coverage@v2(v2.18.5+, released 2026-04-26/27) restructured the composite action to pass inputs via env-var mapping instead of CLI args. Giteaact_runnerdoesn't expand${{ }}expressions inside docker-actionenv:blocks reliably, so the literal string${{ inputs.config }}reached the binary and broke the 'Check coverage' step.go install+ binary invocation (matching the established Frostmoln pattern).--github-action-outputto exposetotal-coverageas a step output, replacing the manualgo tool cover -func | grep | awkcalculations in the compare and PR-comment steps.Test plan
pre-commit run --all-filespassesvladopajic/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.Coverage Report
Total coverage: 0%