Skip to content

refactor module

refactor module #1

Workflow file for this run

name: Terraform Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
terraform-lint:
name: Lint Terraform code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 0.13.1
- name: Terraform Format Check
id: fmt
run: terraform fmt -check -recursive
continue-on-error: true
- name: Terraform Format Diff
if: failure()
run: terraform fmt -diff -recursive
- name: Terraform Validate
run: terraform validate