-
Notifications
You must be signed in to change notification settings - Fork 24
47 lines (40 loc) · 1.26 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
42
43
44
45
46
47
---
name: "Code Quality: TFLint"
on:
push:
jobs:
tflint:
runs-on: ubuntu-latest
strategy:
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast
fail-fast: false
matrix:
examples:
- "./examples/basic"
- "./examples/branch_protection"
- "./examples/complex"
- "./examples/deploy_keys"
- "./examples/files"
- "./examples/issue_labels"
- "./examples/pages"
- "./examples/project"
- "./examples/project_columns"
- "./examples/template"
- "./examples/webhook"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 1
# see https://github.com/terraform-linters/setup-tflint/releases
- name: Setup TFLint
uses: terraform-linters/[email protected]
with:
tflint_version: latest
github_token: ${{ secrets.GITHUB_TOKEN }}
env:
working-dir: "${{ matrix.examples }}"
- name: Initialize TFLint
run: tflint --init --chdir "./${{ matrix.examples }}"
- name: Run TFLint
run: tflint --format=compact --chdir "./${{ matrix.examples }}"