From abcfdcc769c8bec94ccc582730e20ff13e1a16b1 Mon Sep 17 00:00:00 2001 From: beatz174-bit Date: Thu, 23 Apr 2026 12:33:43 +1000 Subject: [PATCH] Add examples Terraform check to Codex validation flow --- AGENTS.md | 2 +- scripts/check.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index cd194b8..d66095d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,7 +51,7 @@ Do not implement in this phase: ## Developer scripts - `scripts/setup-dev.sh`: validate local toolchain requirements -- `scripts/check.sh`: run formatting and unit checks +- `scripts/check.sh`: run formatting and unit checks, then run Terraform checks against `examples/` - `scripts/testacc.sh`: run acceptance tests using generic env vars ## Output expectations diff --git a/scripts/check.sh b/scripts/check.sh index 480a325..a437d03 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -18,4 +18,11 @@ go vet ./... echo "[check] running go test" go test ./... +if command -v terraform >/dev/null 2>&1; then + echo "[check] running terraform fmt check for examples/" + terraform fmt -check -recursive examples +else + echo "[check][warn] terraform not found; skipping examples/ checks" >&2 +fi + echo "[check] complete"