Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
self-hosted-runner:
labels:
# spin-stack/ci's docker8 fleet, where the jobs that build and run containers land (go-cli.yml
# says why): an 8-vCPU EC2 instance per job.
- runs-on/fleet=docker8/env=production
17 changes: 14 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ vars:
# What a release archive and the image carry beside the binary (.goreleaser.yml, Dockerfile).
NOTICES: LICENSE.txt NOTICE THIRD_PARTY_NOTICES

includes:
# versions, bump, release, lint:workflows and consumers, as every spin-stack repository has them
# (go-tools' internal/tasks/tasks.yml). No GATE_WORKFLOW and GATE_JOBS, so release refuses: a
# release here is release.yml's, dispatched. It runs e2e, the whole runtime matrix and publish
# parity on the commit before it tags it, which no run of go-cli.yml on a push does, and
# GoReleaser then fills a draft that a person publishes once it has its archives.
common:
taskfile: "{{.GO_TOOLS_TASKS}}"
flatten: true

tasks:
default:
desc: Build and test the Go CLI
Expand Down Expand Up @@ -200,10 +210,11 @@ tasks:
- go test ./internal/cli -run TestE2E -count=1 -timeout 5m -v {{.CLI_ARGS}}

lint:
desc: Run Go static checks and go-tools' gates - golangci-lint, goroutine lifetimes, tests that cannot fail, AGENTS.md's references, unreachable code, one task per workflow step, pnpm through Socket Firewall
desc: Run Go static checks and go-tools' gates - golangci-lint, the workflows (actionlint, actions pinned by commit), goroutine lifetimes, tests that cannot fail, AGENTS.md's references, unreachable code, one task per workflow step, pnpm through Socket Firewall
cmds:
- go vet ./cmd/... ./internal/...
- task: lint:go
- task: lint:workflows
- ctxlife
- testquality -allow .github/testquality-allow.txt ./...
- refs
Expand Down Expand Up @@ -413,8 +424,8 @@ tasks:
- rm -f {{.BINARY}} coverage.out coverage.html
- rm -rf artifacts dist src/test/tmp

release:
desc: Run GoReleaser; pass --snapshot for a local release
release:artifacts:
desc: Build the release's archives, SBOMs and image with GoReleaser (-- --snapshot for a local build that publishes nothing)
preconditions:
- sh: command -v goreleaser >/dev/null
msg: goreleaser is required
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/opencontainers/image-spec v1.1.1
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.1.0
github.com/spin-stack/go-tools v0.20261118.9
github.com/spin-stack/go-tools v0.20261122.5
github.com/tailscale/hujson v0.0.0-20260727124030-b80ff77dac4f
github.com/testcontainers/testcontainers-go v0.45.0
go.uber.org/mock v0.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiT
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.1.0 h1:6W6MbVUrnMb8PEhjkqwsVLY7ryuzRfFHF4mQd7L94ag=
github.com/spf13/pflag v1.1.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spin-stack/go-tools v0.20261118.9 h1:D8fNq3qR/m8E/Koy3K+vRlug6z3uW0yYhwf74AMkyYU=
github.com/spin-stack/go-tools v0.20261118.9/go.mod h1:Dz0i5ToXAyvGuFxMiSKu5pnH/gcA/k1WOX0FNmAt+GM=
github.com/spin-stack/go-tools v0.20261122.5 h1:KsHTqIpBGuCc2kyB+0xn6oU+QiiSerC3fuWRJ1KoesA=
github.com/spin-stack/go-tools v0.20261122.5/go.mod h1:E+Fw4T6GukPSmPlRNFT3OymrKnHzTGX1efcz1+l812c=
github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4=
github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0=
github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
Expand Down
18 changes: 14 additions & 4 deletions versions.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Every input this repository pins, written once: `versions check` says what is behind,
# `versions bump <name>` moves one (go-tools' commands, on the PATH of `go tool task`), and internal/devtools/versions_gate_test.go fails on a
# Every input this repository pins, written once: `go tool task versions` says what is behind,
# `go tool task bump NAME=<name>` moves one, and internal/devtools/versions_gate_test.go fails on a
# pin written anywhere else. GitHub Actions are pinned by commit in the workflows; Dependabot
# moves those, as go.sum is Go's.

Expand Down Expand Up @@ -33,7 +33,7 @@
track: digest
note: >-
The released image's base (Dockerfile's DISTROLESS_IMAGE, handed to GoReleaser by task
release:env). A bump is checked by task release --snapshot and task release:smoke.
release:env). A bump is checked by task release:artifacts -- --snapshot and task release:smoke.

- name: task
kind: download
Expand All @@ -56,4 +56,14 @@
track: github-release https://github.com/google/go-licenses
note: >-
task release:notices, which writes THIRD_PARTY_NOTICES for the release archives and image.
A bump is checked by task release:notices and the archive listing of task release --snapshot.
A bump is checked by task release:notices and by the archives task release:artifacts --
--snapshot lists.

- name: actionlint
kind: module
source: github.com/rhysd/actionlint/cmd/actionlint
version: v1.7.12
track: github-release https://github.com/rhysd/actionlint
note: >-
task lint:workflows, which task lint runs. spin's version, so the spin-stack repositories'
workflows are read by the same linter.