Skip to content

Commit 474af6c

Browse files
authored
ci: add cache for tf-lint (#100)
This pull request includes an update to the CI workflow configuration to improve efficiency by caching TFLint plugins. * [`.github/workflows/ci.yml`](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR110-R114): Added `actions/cache@v4` to cache TFLint plugins, which helps in reducing the time taken to set up TFLint during CI runs.
1 parent d8f4f50 commit 474af6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ jobs:
107107

108108
steps:
109109
- uses: actions/checkout@v4
110+
- uses: actions/cache@v4
111+
with:
112+
path: ~/.tflint.d/plugins
113+
key: tflint-${{ runner.os }}-${{ hashFiles('.tflint.hcl') }}
114+
110115
- uses: terraform-linters/setup-tflint@v4
111116
with:
112117
tflint_version: "latest"

0 commit comments

Comments
 (0)