Skip to content

Commit aded32b

Browse files
committed
feat(tf): Cache providers directory when checking modules
1 parent 38a1cb9 commit aded32b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/tf_module_check.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
- id: tf_fmt
3232
name: "Terraform: Check formatting"
3333
run: terraform fmt -check -diff -recursive ./
34+
- name: "Terraform: Cache providers directory"
35+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
36+
with:
37+
path: ./.terraform/providers
38+
key: tf-${{ steps.tf_version.outputs.TF_VERSION }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.terraform.lock.hcl') }}
3439
- id: tf_init
3540
name: "Terraform: Prepare working directory"
3641
run: terraform init -backend=false

0 commit comments

Comments
 (0)