generated from terraform-module/terraform-module-blueprint
-
-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (32 loc) · 839 Bytes
/
lint.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
42
name: linter
on:
push:
branches: [ master ]
pull_request:
env:
# renovate: datasource=github-releases depName=terraform-linters/tflint
TFLINT_VERSION: v0.34.0
jobs:
tflint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/[email protected]
name: Checkout source code
- uses: actions/[email protected]
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- uses: terraform-linters/[email protected]
name: Setup TFLint
with:
tflint_version: ${{ env.RENOVATE_CONFIG_FOLDER }}
- name: Show version
run: tflint --version
- name: Init TFLint
run: tflint --init
- name: Run TFLint
run: tflint -f compact