-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 683 Bytes
/
tflint.yml
File metadata and controls
35 lines (28 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: tflint
on:
push:
branches:
- main
paths:
- example/infra/**
- .github/workflows/tflint.yml
pull_request:
paths:
- example/infra/**
- .github/workflows/tflint.yml
jobs:
lints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.tflint.d/plugins
key: tflint-v2-${{ hashFiles('.tflint.hcl') }}
restore-keys: |
tflint-v2-
- uses: terraform-linters/setup-tflint@v4
- run: tflint --init
working-directory: example/infra
- run: tflint -f compact
working-directory: example/infra