ci: add Forgejo Actions PR workflow with Go cache #143
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/OpenSpec
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
RFC - Request For Comments
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
approved
area:client-host
area:item-interaction
area:meta-tooling
area:operator-dev-loop
area:repository-hygiene
area:typescript-sdk
area:website
blocked
bug
castra:bot-active
castra:human
change
checker:tobi
close-suggested
code
copilot-conflict
deferred
dependencies
docs-ok
enhancement
fast-track
groom:close-suggested
hermes-attempted
hermes-needs-clarification
hermes-ready
hermes-review
hermes-wip
human
human-required
intake
merge
merge-conflict
needs-scope
no-concept-doc
no-demo
plan-approved
plan-needs-revision
portfolio:infrastructure
portfolio:mixed
portfolio:product
portfolio:unknown
prioritize
prioritized
priority:high
priority:low
priority:medium
propose
ready
retro
retro-proposal
review
stage:backlog
stage:blocked
stage:code
stage:done
stage:intake
stage:merge
stage:propose
stage:review
stage:waiting
status:waiting
tracker
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
agentic-forges/forgejo-mcp!143
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/143/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Step 2 of CI hardening (see beads
forgejo-mcp-9n2). Adds.forgejo/workflows/ci.ymlmirroring the Tektongo-citask gates on Codeberg'scodeberg-smallrunners withactions/setup-go's built-in module + build cache.Why a second CI surface
actions/setup-gocaches~/go/pkg/modand the build cache keyed ongo.sum, so steady-state PRs hit the cache and finish quickly.Per
forgejo-mcp-td8, we run both CIs in parallel for ~2 weeks, then pick a canonical PR gate and retire the other.Steps mirrored from go-ci
make build)go vet ./...gofmt -lgo mod tidydriftgolangci-lint(warn-only viacontinue-on-error: true)go test -race -shuffle=on -count=1 ./...govulncheck ./...Design notes
concurrency.cancel-in-progress: trueforci-${{ workflow }}-${{ ref }}— superseded pushes auto-cancel.permissions: contents: readonly; no token escalation.GOTOOLCHAIN=localat env level — prevents silent toolchain upgrades that would diverge fromgo.mod.timeout-minutes: 15for cold cache. Cache hit should land <5min per acceptance criterion.v1.64(matches Tekton task pin).Test plan
Follow-ups
forgejo-mcp-td8— decide canonical PR gate, drop the loser.continue-on-error: falseon the lint step.Refs forgejo-mcp-9n2.
op1st Pipelines as Code/on-pull-request-q77tf is running.
Starting Pipelinerun on-pull-request-q77tf in namespace op1st-pipelines
You can monitor the execution using the op1st Pipelines as Code PipelineRun viewer or through the command line by
using the tkn CLI with the following command:
tkn pr logs -n op1st-pipelines on-pull-request-q77tf -fop1st Pipelines as Code/code-scans-qwkjd is running.
Starting Pipelinerun code-scans-qwkjd in namespace op1st-pipelines
You can monitor the execution using the op1st Pipelines as Code PipelineRun viewer or through the command line by
using the tkn CLI with the following command:
tkn pr logs -n op1st-pipelines code-scans-qwkjd -fop1st Pipelines as Code/code-scans-qwkjd has successfully validated your commit.
Task Statuses:
fetch-source
gitleaks-version
gitleaks
op1st Pipelines as Code/on-pull-request-q77tf has successfully validated your commit.
Task Statuses:
fetch-source
build-and-test