Skip to content

Check out repository before running format check (#107) #347

Check out repository before running format check (#107)

Check out repository before running format check (#107) #347

Workflow file for this run

name: TFLint
on: [push]
jobs:
terraform_fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
- run: terraform fmt -check -recursive
lint_aws:
runs-on: ubuntu-latest
defaults:
run:
working-directory: aws
steps:
- uses: actions/checkout@v4
- uses: terraform-linters/setup-tflint@v4
- run: tflint --init
- run: tflint --format compact
lint_azure:
runs-on: ubuntu-latest
defaults:
run:
working-directory: azure
steps:
- uses: actions/checkout@v4
- uses: terraform-linters/setup-tflint@v4
- run: tflint --init
- run: tflint --format compact