Commit Graph

7 Commits

Author SHA1 Message Date
argoyle dc4bc4a98c fix(ci): use go-test-coverage binary directly to fix Gitea Actions (#134)
Release / release (push) Failing after 1m4s
otelsetup / vulnerabilities (push) Successful in 2m13s
otelsetup / test (push) Successful in 3m21s
pre-commit / pre-commit (push) Successful in 6m28s
## 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

Reviewed-on: #134
2026-04-29 05:44:15 +00:00
argoyle 8540caba8c ci: add code coverage integration
otelsetup / vulnerabilities (pull_request) Successful in 2m49s
otelsetup / test (pull_request) Successful in 4m11s
pre-commit / pre-commit (pull_request) Successful in 6m22s
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 689df41ded chore(deps): update actions/setup-python action to v6
otelsetup / vulnerabilities (pull_request) Successful in 1m7s
otelsetup / test (pull_request) Successful in 1m49s
pre-commit / pre-commit (pull_request) Successful in 3m51s
2026-01-09 09:20:53 +00:00
argoyle 8c4db543ad ci: add pre-commit and release workflows
otelsetup / test (pull_request) Successful in 4m38s
otelsetup / vulnerabilities (pull_request) Successful in 4m1s
pre-commit / pre-commit (pull_request) Successful in 7m35s
2026-01-09 09:53:19 +01:00
renovate 0a91d34815 chore(deps): update actions/setup-go action to v6
otelsetup / vulnerabilities (pull_request) Successful in 4m33s
otelsetup / test (pull_request) Successful in 4m57s
2026-01-08 19:15:30 +00:00
renovate 0711246d48 chore(deps): update actions/checkout action to v6
otelsetup / test (pull_request) Successful in 3m49s
otelsetup / vulnerabilities (pull_request) Successful in 7m24s
2026-01-08 18:11:27 +00:00
argoyle e05d98d150 feat: migrate from GitLab CI to Gitea Actions
otelsetup / vulnerabilities (pull_request) Successful in 2m33s
otelsetup / test (pull_request) Successful in 2m37s
2026-01-08 18:34:20 +01:00