mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user