ci: validate dogfood image tooling by running gen, fmt, lint, build (#25475)

Adds a `test_image` job that runs `make gen`, `make fmt`, `make lint`, and `make build` inside the
newly built image via `docker run`. This helps detect breaking changes before merge. 

> [!NOTE]
> Generated with [Coder Agents](https://coder.com/agents)
This commit is contained in:
Cian Johnston
2026-05-25 17:02:13 +01:00
committed by GitHub
parent 52e73b1343
commit 0a45f96d30
3 changed files with 175 additions and 6 deletions
+4 -1
View File
@@ -992,7 +992,10 @@ GEN_FILES := \
$(AIBRIDGED_MOCKS)
# all gen targets should be added here and to gen/mark-fresh
gen: gen/db gen/golden-files $(GEN_FILES)
# Set GEN_SKIP_GOLDEN=1 to skip gen/golden-files (which needs Docker to
# start PostgreSQL via testcontainers).
GEN_SKIP_GOLDEN ?=
gen: gen/db $(if $(GEN_SKIP_GOLDEN),,gen/golden-files) $(GEN_FILES)
.PHONY: gen
gen/db: $(DB_GEN_FILES)