Skip to content

Fix double yaml file extention. #159

Fix double yaml file extention.

Fix double yaml file extention. #159

Workflow file for this run

name: Terraform code quality
on:
pull_request:
paths-ignore:
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/lint.yaml"
push:
paths-ignore:
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/lint.yaml"
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
- name: Terraform fmt
run: terraform fmt
continue-on-error: true
tflint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- uses: terraform-linters/setup-tflint@v4
name: Setup TFLint
- name: Init Terraform
run: terraform init
- name: Init TFLint
run: tflint --init
- name: Run TFLint
run: tflint -f compact