-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.15 KB
/
tflint.yml
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
36
37
38
39
40
41
name: tflint
on: [push]
jobs:
run-tflint:
runs-on: ubuntu-latest
strategy:
matrix:
tf_dir:
- modules/compliant-account
- modules/compliant-organization
- modules/ecr-repository
- modules/ecs-cluster
- modules/ecs-service
- modules/github-actions
- modules/global-config
- modules/regional-config
- modules/regional-config-data
- modules/s3-bucket
- modules/vpc
- tenants/app-workspace
- tenants/management
- tenants/test1
- tenants/test2
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/cache@v4
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('.tflint.hcl') }}
- name: Setup tflint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: v0.46.1
- name: Initialize tflint
run: |
cd ${{ matrix.tf_dir }} && tflint --init
- name: Run tflint
run: |
cd ${{ matrix.tf_dir }} && tflint -f compact