14 Commits
Author SHA1 Message Date
rock be36636a41 test: verify CI works without upload-artifact
ci / test (push) Successful in 2m5s
2026-08-30 20:49:33 -07:00
rock f6992c768e fix: remove upload-artifact actions
ci / test (push) Canceled after 0s
2026-08-30 20:49:25 -07:00
rock cae21ca3b3 test: final Forgejo CI validation
ci / test (push) Canceled after 0s
2026-08-30 20:36:25 -07:00
rock fac6c2fcc0 fix: clean up Forgejo workflow - use forgejo.riotpiao.com, REGISTRY_PAT secret, golang 1.26
ci / test (push) Canceled after 0s
2026-08-30 20:36:17 -07:00
rock da6ea54c96 fix: format code with gofmt 2026-08-30 09:46:58 -07:00
rock a8ed507198 test: final CI validation 2026-08-30 09:37:01 -07:00
rock a13e71e828 fix: remove broken actions/cache (Forgejo doesn't need it) 2026-08-30 09:36:53 -07:00
rock cdca9d7a2d fix: disable actions cache to debug go vet failures 2026-08-30 07:34:26 -07:00
rock f2b1a4bbb1 fix: use REGISTRY_PAT secret for git auth (exists on all repos)
ci / test (push) Failing after 46s
2026-08-29 22:53:24 -07:00
rock 72533b8f32 fix: use consistent secret name for git auth in CI workflows
ci / test (push) Failing after 26s
2026-08-28 16:45:26 -07:00
rock e7f6bcefa8 fix: update CI workflow golang image from 1.25 to 1.26
ci / test (push) Failing after 25s
2026-08-28 15:52:30 -07:00
rock dca2d154c4 upgrade: Go from 1.25.0 to 1.26.0
ci / test (push) Canceled after 11s
2026-08-28 15:52:16 -07:00
rock e1de7d9255 fix: use golang runner label instead of deprecated docker label
ci / test (push) Failing after 46s
2026-08-28 15:36:26 -07:00
Story Crater Bot ffd0257f19 test(ci): verify main-branch CI trigger
ci / test (push) Canceled after 0s
2026-08-21 21:07:39 -07:00
10 changed files with 40 additions and 56 deletions
+5 -24
View File
@@ -11,37 +11,24 @@ concurrency:
jobs: jobs:
test: test:
runs-on: docker runs-on: golang
container: container:
image: golang:1.25 image: golang:1.26
env: env:
GOPRIVATE: forgejo.riotpiao.com GOPRIVATE: forgejo.riotpiao.com
GOFLAGS: -mod=readonly GOFLAGS: -mod=readonly
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
steps: steps:
# actions/checkout is a Node-based action; golang:1.25 has no node on PATH. # actions/checkout is a Node-based action; install node for Actions support.
- name: install node (required by JS-based actions) - name: install node (required by JS-based actions)
run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# kmsvc-proto lives in another private repo on the same Forgejo instance. # kmsvc-proto lives in another private repo on the same Forgejo instance.
# GITHUB_TOKEN is auto-injected by Forgejo Actions and has read access to all repos.
- name: configure git auth for private module fetch - name: configure git auth for private module fetch
run: | run: |
git config --global url."https://oauth2:${GITHUB_TOKEN}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" git config --global url."https://oauth2:${REGISTRY_PAT}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: cache go modules + build cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-${{ runner.os }}-${{ hashFiles('go.sum') }}
restore-keys: |
go-${{ runner.os }}-
- name: gofmt - name: gofmt
run: | run: |
@@ -63,9 +50,3 @@ jobs:
- name: coverage summary - name: coverage summary
run: go tool cover -func=coverage.out | tail -1 run: go tool cover -func=coverage.out | tail -1
- name: upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out
+4 -4
View File
@@ -10,9 +10,9 @@ permissions:
jobs: jobs:
release: release:
runs-on: docker runs-on: golang
container: container:
image: golang:1.25 image: golang:1.26
env: env:
GOPRIVATE: forgejo.riotpiao.com GOPRIVATE: forgejo.riotpiao.com
steps: steps:
@@ -23,9 +23,9 @@ jobs:
- name: configure git auth for private module fetch - name: configure git auth for private module fetch
run: | run: |
git config --global url."https://oauth2:${GITHUB_TOKEN}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" git config --global url."https://oauth2:${REGISTRY_PAT}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} REGISTRY_PAT: ${{ secrets.GITHUB_TOKEN }}
# A tag is the public contract for `go get [email protected]` — re-run the full # A tag is the public contract for `go get [email protected]` — re-run the full
# gate before publishing a release, never trust that main was green. # gate before publishing a release, never trust that main was green.
+3
View File
@@ -56,3 +56,6 @@ go test ./... -race
``` ```
No `buf`/`protoc` install needed — `kmsvc-proto`'s generated Go code is consumed as a plain module dependency. No `buf`/`protoc` install needed — `kmsvc-proto`'s generated Go code is consumed as a plain module dependency.
# Final test - clean cache removal
# Final CI validation - Forgejo ready
# CI cleanup - removed upload-artifact
+1 -1
View File
@@ -1,6 +1,6 @@
module forgejo.riotpiao.com/rock/kmsvc-sdk module forgejo.riotpiao.com/rock/kmsvc-sdk
go 1.25.0 go 1.26.0
require ( require (
forgejo.riotpiao.com/rock/kmsvc-proto v1.4.0 forgejo.riotpiao.com/rock/kmsvc-proto v1.4.0