11 Commits

Author SHA1 Message Date
renovate afb494ed05 fix(deps): update module github.com/99designs/gqlgen to v0.17.90
renovate/stability-days Updates have met minimum release age requirement
presenter / vulnerabilities (pull_request) Successful in 1m54s
presenter / test (pull_request) Successful in 2m27s
pre-commit / pre-commit (pull_request) Successful in 5m42s
2026-04-29 06:08:24 +00:00
argoyle ab5b2e6fe4 fix(ci): use go-test-coverage binary directly to fix Gitea Actions (#150)
presenter / vulnerabilities (push) Successful in 2m0s
Release / release (push) Successful in 1m9s
presenter / test (push) Successful in 3m27s
pre-commit / pre-commit (push) Successful in 6m49s
## 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: #150
2026-04-29 05:45:19 +00:00
releaser 93bbcada5d chore(release): prepare for v0.3.4 (#146)
Release / release (push) Successful in 51s
presenter / vulnerabilities (push) Successful in 1m36s
presenter / test (push) Successful in 3m25s
pre-commit / pre-commit (push) Successful in 6m5s
## [0.3.4] - 2026-03-24

### 🐛 Bug Fixes

- *(deps)* Update module github.com/99designs/gqlgen to v0.17.88 (#138)
- *(deps)* Update module github.com/99designs/gqlgen to v0.17.89 (#145)

### ⚙️ Miscellaneous Tasks

- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.0 (#132)
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.1 (#134)
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.2 (#136)
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.3 (#139)
- *(deps)* Update pre-commit hook gitleaks/gitleaks to v8.30.1 (#141)
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.4 (#143)

<!-- generated by git-cliff -->

---

**Note:** Please use **Squash Merge** when merging this PR.

Reviewed-on: #146
Co-authored-by: Unbound Releaser <releaser@unbound.se>
Co-committed-by: Unbound Releaser <releaser@unbound.se>
2026-04-02 09:14:42 +00:00
renovate 542830fc5d fix(deps): update module github.com/99designs/gqlgen to v0.17.89 (#145)
presenter / test (push) Successful in 2m11s
presenter / vulnerabilities (push) Successful in 1m47s
Release / release (push) Successful in 1m15s
pre-commit / pre-commit (push) Successful in 5m48s
2026-03-24 19:18:59 +00:00
renovate 8065c26baa chore(deps): update pre-commit hook golangci/golangci-lint to v2.11.4 (#143)
presenter / test (push) Successful in 2m12s
presenter / vulnerabilities (push) Successful in 1m37s
Release / release (push) Successful in 58s
pre-commit / pre-commit (push) Successful in 6m15s
2026-03-22 19:27:17 +00:00
renovate 357396a134 chore(deps): update pre-commit hook gitleaks/gitleaks to v8.30.1 (#141)
presenter / vulnerabilities (push) Successful in 1m40s
Release / release (push) Successful in 1m21s
presenter / test (push) Successful in 2m50s
pre-commit / pre-commit (push) Successful in 6m16s
2026-03-12 16:24:51 +00:00
renovate ff13d824a7 chore(deps): update pre-commit hook golangci/golangci-lint to v2.11.3 (#139)
Release / release (push) Successful in 1m1s
presenter / vulnerabilities (push) Successful in 2m34s
presenter / test (push) Successful in 3m4s
pre-commit / pre-commit (push) Successful in 7m25s
2026-03-10 11:28:27 +00:00
renovate 2be6ebe6a5 fix(deps): update module github.com/99designs/gqlgen to v0.17.88 (#138)
Release / release (push) Failing after 1m9s
presenter / vulnerabilities (push) Successful in 1m57s
presenter / test (push) Successful in 2m38s
pre-commit / pre-commit (push) Successful in 4m49s
2026-03-09 01:40:27 +00:00
renovate a3e5a710c2 chore(deps): update pre-commit hook golangci/golangci-lint to v2.11.2 (#136)
Release / release (push) Successful in 1m0s
presenter / vulnerabilities (push) Successful in 1m27s
presenter / test (push) Successful in 2m2s
pre-commit / pre-commit (push) Successful in 6m4s
2026-03-07 22:41:33 +00:00
renovate 9316724b23 chore(deps): update pre-commit hook golangci/golangci-lint to v2.11.1 (#134)
Release / release (push) Successful in 1m5s
presenter / test (push) Successful in 2m26s
presenter / vulnerabilities (push) Successful in 1m50s
pre-commit / pre-commit (push) Successful in 6m27s
2026-03-06 15:43:43 +00:00
renovate 58aa0d583c chore(deps): update pre-commit hook golangci/golangci-lint to v2.11.0 (#132)
presenter / vulnerabilities (push) Successful in 2m18s
Release / release (push) Successful in 1m41s
presenter / test (push) Successful in 3m45s
pre-commit / pre-commit (push) Successful in 6m17s
2026-03-06 14:18:25 +00:00
6 changed files with 43 additions and 31 deletions
+11 -15
View File
@@ -18,11 +18,10 @@ jobs:
run: go test -race -coverprofile=coverage.txt ./...
- name: Check coverage
uses: vladopajic/go-test-coverage@v2
with:
config: ./.testcoverage.yml
# Download baseline coverage from main branch (for PRs)
id: coverage
run: |
go install github.com/vladopajic/go-test-coverage/v2@latest
go-test-coverage --config ./.testcoverage.yml --github-action-output
- name: Download baseline coverage
if: gitea.event_name == 'pull_request'
uses: actions/download-artifact@v3
@@ -30,14 +29,12 @@ jobs:
name: coverage-baseline
path: ./baseline
continue-on-error: true
# Compare coverage against baseline (for PRs)
- name: Compare coverage
if: gitea.event_name == 'pull_request'
run: |
CURRENT=$(go tool cover -func=coverage.txt | grep "^total:" | awk '{print $NF}' | tr -d '%')
CURRENT="${{ steps.coverage.outputs.total-coverage }}"
if [ -f ./baseline/coverage.txt ]; then
BASE=$(go tool cover -func=./baseline/coverage.txt | grep "^total:" | awk '{print $NF}' | tr -d '%')
BASE=$(cat ./baseline/coverage.txt)
echo "Base coverage: ${BASE}%"
echo "Current coverage: ${CURRENT}%"
if [ "$(echo "$CURRENT < $BASE" | bc -l)" -eq 1 ]; then
@@ -49,8 +46,9 @@ jobs:
echo "No baseline coverage found, skipping comparison"
echo "Current coverage: ${CURRENT}%"
fi
# Upload coverage as baseline (only on main)
- name: Save coverage baseline
if: gitea.ref == 'refs/heads/main'
run: echo "${{ steps.coverage.outputs.total-coverage }}" > coverage.txt
- name: Upload coverage baseline
if: gitea.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
@@ -58,19 +56,17 @@ jobs:
name: coverage-baseline
path: coverage.txt
retention-days: 90
# Post coverage to PR comment
- name: Post coverage comment
if: gitea.event_name == 'pull_request'
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_URL: ${{ gitea.server_url }}
run: |
COVERAGE=$(go tool cover -func=coverage.txt | grep "^total:" | awk '{print $NF}')
COVERAGE="${{ steps.coverage.outputs.total-coverage }}"
curl -X POST "${GITEA_URL}/api/v1/repos/${{ gitea.repository }}/issues/${{ gitea.event.pull_request.number }}/comments" \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"body\": \"## Coverage Report\n\nTotal coverage: **${COVERAGE}**\"}"
-d "{\"body\": \"## Coverage Report\n\nTotal coverage: **${COVERAGE}%**\"}"
vulnerabilities:
runs-on: ubuntu-latest
+2 -2
View File
@@ -30,10 +30,10 @@ repos:
- id: go-test
- id: gofumpt
- repo: https://github.com/golangci/golangci-lint
rev: v2.10.1
rev: v2.11.4
hooks:
- id: golangci-lint-full
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
rev: v8.30.1
hooks:
- id: gitleaks
+1 -1
View File
@@ -1,3 +1,3 @@
{
"version": "v0.3.3"
"version": "v0.3.4"
}
+16
View File
@@ -2,6 +2,22 @@
All notable changes to this project will be documented in this file.
## [0.3.4] - 2026-03-24
### 🐛 Bug Fixes
- *(deps)* Update module github.com/99designs/gqlgen to v0.17.88 (#138)
- *(deps)* Update module github.com/99designs/gqlgen to v0.17.89 (#145)
### ⚙️ Miscellaneous Tasks
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.0 (#132)
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.1 (#134)
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.2 (#136)
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.3 (#139)
- *(deps)* Update pre-commit hook gitleaks/gitleaks to v8.30.1 (#141)
- *(deps)* Update pre-commit hook golangci/golangci-lint to v2.11.4 (#143)
## [0.3.3] - 2026-02-20
### 🐛 Bug Fixes
+5 -5
View File
@@ -1,18 +1,18 @@
module gitea.unbound.se/shiny/presenter
go 1.25
go 1.25.0
require (
github.com/99designs/gqlgen v0.17.87
github.com/99designs/gqlgen v0.17.90
github.com/stretchr/testify v1.11.1
github.com/vektah/gqlparser/v2 v2.5.32
github.com/vektah/gqlparser/v2 v2.5.33
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sosodev/duration v1.3.1 // indirect
golang.org/x/sync v0.19.0 // indirect
github.com/sosodev/duration v1.4.0 // indirect
golang.org/x/sync v0.20.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
+8 -8
View File
@@ -1,5 +1,5 @@
github.com/99designs/gqlgen v0.17.87 h1:pSnCIMhBQezAE8bc1GNmfdLXFmnWtWl1GRDFEE/nHP8=
github.com/99designs/gqlgen v0.17.87/go.mod h1:fK05f1RqSNfQpd4CfW5qk/810Tqi4/56Wf6Nem0khAg=
github.com/99designs/gqlgen v0.17.90 h1:wSv6blm/PoplU6QoNw83EcQpNtC0HX3/+44vITJOzpk=
github.com/99designs/gqlgen v0.17.90/go.mod h1:GqYrEwYsqCG8VaOsq2kJUCUKwAE1T+u2i+Nj7NtXiVI=
github.com/agnivade/levenshtein v1.2.1 h1:EHBY3UOn1gwdy/VbFwgo4cxecRznFk7fKWN1KOX7eoM=
github.com/agnivade/levenshtein v1.2.1/go.mod h1:QVVI16kDrtSuwcpd0p1+xMC6Z/VfhtCyDIjcwga4/DU=
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ=
@@ -12,14 +12,14 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I=
github.com/sosodev/duration v1.3.1 h1:qtHBDMQ6lvMQsL15g4aopM4HEfOaYuhWBw3NPTtlqq4=
github.com/sosodev/duration v1.3.1/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg=
github.com/sosodev/duration v1.4.0 h1:35ed0KiVFriGHHzZZJaZLgmTEEICIyt8Sx0RQfj9IjE=
github.com/sosodev/duration v1.4.0/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
github.com/vektah/gqlparser/v2 v2.5.32 h1:k9QPJd4sEDTL+qB4ncPLflqTJ3MmjB9SrVzJrawpFSc=
github.com/vektah/gqlparser/v2 v2.5.32/go.mod h1:c1I28gSOVNzlfc4WuDlqU7voQnsqI6OG2amkBAFmgts=
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
github.com/vektah/gqlparser/v2 v2.5.33 h1:lRp8aIeNUNbimf/axZd7ETg24q06hBtPaas+TcvI/7E=
github.com/vektah/gqlparser/v2 v2.5.33/go.mod h1:c1I28gSOVNzlfc4WuDlqU7voQnsqI6OG2amkBAFmgts=
golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=