Skip to content

ci(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#243) #10

ci(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#243)

ci(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#243) #10

name: Terraform Validate
# Validates the cloud onboarding Terraform modules under deploy/*/terraform
# without provisioning anything: format check + provider init (no backend) +
# terraform validate. Backend-free, so no cloud credentials are required and
# nothing is applied. Tracks Elevarq/Signals#202.
on:
push:
branches: [main]
paths:
- "deploy/**/terraform/**"
- ".github/workflows/terraform-validate.yml"
pull_request:
paths:
- "deploy/**/terraform/**"
- ".github/workflows/terraform-validate.yml"
workflow_dispatch: {}
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
module: [aws, azure, gcp]
defaults:
run:
working-directory: deploy/${{ matrix.module }}/terraform
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Terraform
uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1
with:
terraform_version: "1.5.7"
terraform_wrapper: false
- name: Format check
run: terraform fmt -check -diff
- name: Init (no backend, no apply)
run: terraform init -backend=false -input=false -no-color
- name: Validate
run: terraform validate -no-color