Skip to content

Commit c48ae9c

Browse files
committed
lint: Validate limit
1 parent 6c7f022 commit c48ae9c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.ci/.tflint.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugin "aws" {
22
enabled = true
3-
version = "0.13.4"
3+
version = "0.16.0"
44
source = "github.com/terraform-linters/tflint-ruleset-aws"
55
}
66

.github/workflows/acctest-terraform-lint.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,15 @@ jobs:
8080
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }}
8181
- uses: actions/cache@v3
8282
name: Cache plugin dir
83+
continue-on-error: true
84+
timeout-minutes: 2
8385
with:
8486
path: ~/.tflint.d/plugins
85-
key: ${{ runner.os }}-tflint-${{ hashFiles('.ci/.tflint.hcl') }}
87+
key: ${{ runner.os }}-tflint-${{ hashFiles('.ci/.tflint.hcl') }}
8688
- run: cd .ci/tools && go install github.com/katbyte/terrafmt
8789
- run: cd .ci/tools && go install github.com/terraform-linters/tflint
8890
- run: find ~/ -type d -name .tflint.d
89-
- run: tflint -c .ci/.tflint.hcl --init
91+
- run: tflint -c .ci/.tflint.hcl --init
9092
- run: find ~/ -type d -name .tflint.d
9193
- run: ls -hal ~/.tflint.d
9294
- run: ls -hal ~/.tflint.d/plugins
@@ -111,13 +113,15 @@ jobs:
111113
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }}
112114
- uses: actions/cache@v3
113115
name: Cache plugin dir
116+
continue-on-error: true
117+
timeout-minutes: 2
114118
with:
115119
path: ~/.tflint.d/plugins
116-
key: ${{ runner.os }}-tflint-${{ hashFiles('.ci/.tflint.hcl') }}
120+
key: ${{ runner.os }}-tflint-${{ hashFiles('.ci/.tflint.hcl') }}
117121
- run: cd .ci/tools && go install github.com/katbyte/terrafmt
118122
- run: cd .ci/tools && go install github.com/terraform-linters/tflint
119123
- run: find ~/ -type d -name .tflint.d
120-
- run: tflint -c .ci/.tflint.hcl --init
124+
- run: tflint -c .ci/.tflint.hcl --init
121125
- run: find ~/ -type d -name .tflint.d
122126
- run: ls -hal ~/.tflint.d
123127
- run: ls -hal ~/.tflint.d/plugins

0 commit comments

Comments
 (0)