Skip to content

Commit 20a21d3

Browse files
committed
check formatting for latest terraform version
1 parent fbf8eaf commit 20a21d3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/terraform.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- if: contains(matrix.terraform, '1.1.')
3333
name: check terraform formatting
3434
run: terraform fmt -recursive -check=true -write=false
35+
- if: contains(matrix.terraform, 'latest') # check formatting for the latest release but avoid failing the build
36+
name: check terraform formatting
37+
run: terraform fmt -recursive -check=true -write=false
3538
continue-on-error: true
3639
- name: validate terraform
3740
run: terraform validate
@@ -56,6 +59,9 @@ jobs:
5659
- if: contains(matrix.terraform, '1.1.')
5760
name: check terraform formatting
5861
run: terraform fmt -recursive -check=true -write=false
62+
- if: contains(matrix.terraform, 'latest') # check formatting for the latest release but avoid failing the build
63+
name: check terraform formatting
64+
run: terraform fmt -recursive -check=true -write=false
5965
continue-on-error: true
60-
- name: validate terraform
66+
- name: validate terraform011
6167
run: terraform validate

0 commit comments

Comments
 (0)