|
27 | 27 | # What a release archive and the image carry beside the binary (.goreleaser.yml, Dockerfile). |
28 | 28 | NOTICES: LICENSE.txt NOTICE THIRD_PARTY_NOTICES |
29 | 29 |
|
| 30 | +includes: |
| 31 | + # versions, bump, release, lint:workflows and consumers, as every spin-stack repository has them |
| 32 | + # (go-tools' internal/tasks/tasks.yml). No GATE_WORKFLOW and GATE_JOBS, so release refuses: a |
| 33 | + # release here is release.yml's, dispatched. It runs e2e, the whole runtime matrix and publish |
| 34 | + # parity on the commit before it tags it, which no run of go-cli.yml on a push does, and |
| 35 | + # GoReleaser then fills a draft that a person publishes once it has its archives. |
| 36 | + common: |
| 37 | + taskfile: "{{.GO_TOOLS_TASKS}}" |
| 38 | + flatten: true |
| 39 | + |
30 | 40 | tasks: |
31 | 41 | default: |
32 | 42 | desc: Build and test the Go CLI |
@@ -200,10 +210,11 @@ tasks: |
200 | 210 | - go test ./internal/cli -run TestE2E -count=1 -timeout 5m -v {{.CLI_ARGS}} |
201 | 211 |
|
202 | 212 | lint: |
203 | | - 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 |
| 213 | + 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 |
204 | 214 | cmds: |
205 | 215 | - go vet ./cmd/... ./internal/... |
206 | 216 | - task: lint:go |
| 217 | + - task: lint:workflows |
207 | 218 | - ctxlife |
208 | 219 | - testquality -allow .github/testquality-allow.txt ./... |
209 | 220 | - refs |
@@ -413,8 +424,8 @@ tasks: |
413 | 424 | - rm -f {{.BINARY}} coverage.out coverage.html |
414 | 425 | - rm -rf artifacts dist src/test/tmp |
415 | 426 |
|
416 | | - release: |
417 | | - desc: Run GoReleaser; pass --snapshot for a local release |
| 427 | + release:artifacts: |
| 428 | + desc: Build the release's archives, SBOMs and image with GoReleaser (-- --snapshot for a local build that publishes nothing) |
418 | 429 | preconditions: |
419 | 430 | - sh: command -v goreleaser >/dev/null |
420 | 431 | msg: goreleaser is required |
|
0 commit comments