Require Terraform across dev scripts

This commit is contained in:
beatz174-bit
2026-04-29 14:34:41 +10:00
parent 5130797008
commit 4fcf388092
3 changed files with 19 additions and 17 deletions
+6 -5
View File
@@ -26,11 +26,12 @@ 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
if ! command -v terraform >/dev/null 2>&1; then
echo "[check][error] terraform not found in PATH" >&2
exit 1
fi
echo "[check] running terraform fmt check for examples/"
terraform fmt -check -recursive examples
echo "[check] complete"