From fc6f8ab4aa3faf2f327cf0a4653eb5b7ea9f5e08 Mon Sep 17 00:00:00 2001 From: RomeoCavazza Date: Sat, 6 Jun 2026 23:43:06 +0200 Subject: [PATCH] ci(ops): validate terraform configuration in CI --- .github/workflows/ops-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ops-ci.yml b/.github/workflows/ops-ci.yml index 108afe1..c4de891 100644 --- a/.github/workflows/ops-ci.yml +++ b/.github/workflows/ops-ci.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Prettier check (yaml / md / json) run: npx --yes prettier --check "**/*.{yaml,yml,md,json}" @@ -34,6 +34,12 @@ jobs: - name: Terraform fmt check run: terraform -chdir=terraform fmt -check + - name: Terraform init (backend disabled) + run: terraform -chdir=terraform init -backend=false + + - name: Terraform validate + run: terraform -chdir=terraform validate + # À activer quand les manifests seront réels (pas des placeholders) : # - name: Validate manifests (kubeconform) # run: |