fix(ci): use go-test-coverage binary directly to fix Gitea Actions #150

Merged
argoyle merged 1 commits from fix/coverage-tool-binary into main 2026-04-29 05:45:20 +00:00
Owner

Summary

  • vladopajic/go-test-coverage@v2 (v2.18.5+, released 2026-04-26/27) restructured its composite action to pass inputs via env-var mapping. Gitea act_runner doesn't expand ${{ }} expressions inside docker-action env: blocks reliably, so the literal string ${{ inputs.config }} reached the binary and broke the 'Check coverage' step.
  • Replace the action with a direct go install + binary invocation (matching the established Frostmoln pattern).
  • Use --github-action-output to expose total-coverage as a step output, replacing the manual go tool cover -func | grep | awk calculations.
  • Baseline artifact now stores the percentage directly instead of the full coverage profile.

Test plan

  • prek run --all-files passes
  • CI passes on this PR
  • After merge, baseline artifact format propagates on next push to main
## Summary - `vladopajic/go-test-coverage@v2` (v2.18.5+, released 2026-04-26/27) restructured its composite action to pass inputs via env-var mapping. Gitea `act_runner` doesn't expand `${{ }}` expressions inside docker-action `env:` blocks reliably, so the literal string `${{ inputs.config }}` reached the binary and broke the 'Check coverage' step. - Replace the action with a direct `go install` + binary invocation (matching the established Frostmoln pattern). - Use `--github-action-output` to expose `total-coverage` as a step output, replacing the manual `go tool cover -func | grep | awk` calculations. - Baseline artifact now stores the percentage directly instead of the full coverage profile. ## Test plan - [x] `prek run --all-files` passes - [ ] CI passes on this PR - [ ] After merge, baseline artifact format propagates on next push to main
argoyle added 1 commit 2026-04-29 05:33:19 +00:00
fix(ci): use go-test-coverage binary directly to fix Gitea Actions
presenter / vulnerabilities (pull_request) Successful in 1m59s
presenter / test (pull_request) Successful in 2m35s
pre-commit / pre-commit (pull_request) Successful in 5m52s
5b581a7f82
Switch from broken composite action wrapper to direct go install +
binary invocation matching the established Frostmoln pattern. Use
--github-action-output to expose total-coverage as a step output.

Coverage Report

Total coverage: 100%

## Coverage Report Total coverage: **100%**
argoyle merged commit ab5b2e6fe4 into main 2026-04-29 05:45:20 +00:00
argoyle deleted branch fix/coverage-tool-binary 2026-04-29 05:45:21 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shiny/presenter#150