Skip to content

version 1

version 1 #72

name: "Terraform Validation"
on:
pull_request:
push:
branches:
- main
- develop
jobs:
terraform:
name: "Terraform Syntax Check"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/[email protected]
with:
terraform_version: 1.1.7
- name: Terraform Format Check
run: terraform fmt -check -recursive
- name: Terraform Init
run: terraform init
- name: Terraform Validate
run: terraform validate