compose/.github/workflows
Nicolas De Loof 7c2c393d74 ci: lint, vet and test relay/ as its own module
relay/ (github.com/docker/compose-relay) is a separate go.mod: root
`go vet`/`golangci-lint`/`go test` never covered it, and the local
pre-commit hook explicitly excludes any directory with its own go.mod
for the same reason. Only the image build (relay-image-cross) was ever
validated in CI -- the Go source itself had no quality gate.

Adds relay-lint and relay-test bake targets, mirroring the root lint/
test Dockerfile stages: a build-base downloading go.mod's (currently
empty) dependency set, a lint stage running the same pinned
golangci-lint version as the root, and a test stage running go vet
then go test. relay-lint joins the "validate" bake group; both are new
matrix entries in the CI validate job.

relay/ gets its own .golangci.yml (the lint stage's build context is
"./relay" only, so it can't see the root config) with the same rule
set as root, minus what doesn't apply to a dependency-free module
(the e2e build tag, testify/gotest.tools-specific depguard entries).

Turning lint on for the first time surfaced 8 real findings in
relay/main.go and main_test.go (unchecked Close() errors, %v instead
of %w on a wrapped error, a redundant embedded-field selector, and
log.Fatalf after a defer that would never run) -- fixed here so the
new job is green from the start, not merged red.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-09-17 09:23:54 +02:00
..
ai-disclosure-gate.yml ci: block merge while a PR contains AI_AGENT_DISCLOSURE.md 2026-08-13 09:26:35 +02:00
ci.yml ci: lint, vet and test relay/ as its own module 2026-09-17 09:23:54 +02:00
docs-upstream.yml build(deps): bump actions/checkout from 7.0.0 to 7.0.1 2026-07-30 11:41:08 +02:00
merge.yml ci: build and publish docker/compose-relay 2026-09-16 17:03:23 +02:00
pr-review-trigger.yml fix zizmor findings 2026-07-06 17:11:24 +02:00
pr-review.yml chore: update docker-agent-action to v2.0.9 2026-09-16 08:06:45 +02:00
scorecards.yml build(deps): bump github/codeql-action/upload-sarif 2026-09-02 15:37:36 +02:00
stale.yml build(deps): bump actions/stale from 10.4.0 to 11.0.0 2026-08-03 12:02:29 +02:00
zizmor.yml ci: zizmor workflow 2026-07-06 17:11:24 +02:00