Skip to content

Commit 818b52c

Browse files
committed
test review doc action
1 parent 32f1b30 commit 818b52c

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

.github/workflows/terraform.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,28 @@ jobs:
4343
continue-on-error: true
4444
- name: validate terraform
4545
run: terraform validate
46-
47-
tflint:
48-
name: tflint
49-
runs-on: ubuntu-latest
50-
steps:
51-
- name: "Checkout"
52-
uses: actions/checkout@v3
53-
- name: tflint
54-
uses: reviewdog/action-tflint@master
46+
- if: contains(matrix.terraform, '1.3.')
47+
name: Setup TFLint
48+
uses: terraform-linters/setup-tflint@v2
5549
with:
5650
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
fail_on_error: "true" # Optional. Fail action if errors are found
58-
filter_mode: "nofilter" # Optional. Check all files, not just the diff
51+
- if: contains(matrix.terraform, '1.3.')
52+
name: Run TFLint
53+
run: tflint -f compact
54+
55+
# tflint:
56+
# name: tflint
57+
# runs-on: ubuntu-latest
58+
# steps:
59+
# - name: "Checkout"
60+
# uses: actions/checkout@v3
61+
# - name: tflint
62+
# uses: reviewdog/action-tflint@master
63+
# with:
64+
# github_token: ${{ secrets.GITHUB_TOKEN }}
65+
# fail_on_error: "true" # Optional. Fail action if errors are found
66+
# filter_mode: "nofilter" # Optional. Check all files, not just the diff
5967

60-
# name: Setup TFLint
61-
# uses: terraform-linters/setup-tflint@v2
62-
# - if: contains(matrix.terraform, '1.3.')
63-
# name: Run TFLint
64-
# run: tflint -f compact
6568

6669
verify_examples:
6770
name: Verify examples

0 commit comments

Comments
 (0)