Skip to content

Build(deps): Bump actions/cache from 3 to 4 #151

Build(deps): Bump actions/cache from 3 to 4

Build(deps): Bump actions/cache from 3 to 4 #151

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