Skip to content

Add github actions for tf lint check #4

Add github actions for tf lint check

Add github actions for tf lint check #4

Workflow file for this run

name: Terraform CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Terraform-Fmt-Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.5.7"
- name: Terraform fmt
id: fmt
run: terraform fmt -check -recursive
continue-on-error: false
- name: Terraform Validate
id: validate
run: terraform validate -no-color
- name: Terraform Init
id: init
run: terraform init