Skip to content

refactor example and unit tests #22

refactor example and unit tests

refactor example and unit tests #22

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@v4
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 0.13.1
- name: Terraform Init
id: init
run: terraform init -input=false
- 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