Commit Graph

5 Commits

Author SHA1 Message Date
argoyle bdff36b446 fix(ci): use go-test-coverage binary directly to fix Gitea Actions (#88)
Release / release (push) Successful in 56s
dbsetup / vulnerabilities (push) Successful in 1m57s
dbsetup / test (push) Successful in 2m39s
pre-commit / pre-commit (push) Successful in 6m50s
## 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. 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 the tool's `--github-action-output` to expose `total-coverage` as a step output, replacing the manual `go tool cover -func | grep | awk` calculations in the compare and PR-comment steps.
- Baseline artifact now stores the percentage directly instead of the full coverage profile.

## Test plan

- [x] `pre-commit run --all-files` passes
- [ ] CI passes on this PR
- [ ] After merge, baseline artifact format propagates on next push to main

Reviewed-on: #88
2026-04-29 05:44:54 +00: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
renovate b62be83146 chore(deps): update actions/setup-go action to v6
dbsetup / test (pull_request) Successful in 4m20s
dbsetup / vulnerabilities (pull_request) Successful in 5m50s
2026-01-08 15:03:18 +00:00
renovate ef8cba1131 chore(deps): update actions/checkout action to v6
dbsetup / test (pull_request) Successful in 3m25s
dbsetup / vulnerabilities (pull_request) Successful in 5m29s
2026-01-08 14:02:33 +00:00
argoyle 2f41c9ef48 feat: add Gitea Actions workflow
dbsetup / vulnerabilities (pull_request) Successful in 1m32s
dbsetup / test (pull_request) Successful in 1m34s
2026-01-08 14:21:23 +01:00