We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 845b0aa commit 11d2716Copy full SHA for 11d2716
.github/workflows/terraform-validate.yml
@@ -0,0 +1,36 @@
1
+name: "Terraform Validate"
2
+
3
+on:
4
+ pull_request:
5
+ paths:
6
+ - 'terraform/**'
7
+ - '.github/workflows/terraform-validate.yml'
8
9
+env:
10
+ TF_VERSION: "1.7.5"
11
12
+jobs:
13
+ terraform-validate:
14
+ name: "Terraform Validate"
15
+ runs-on: ubuntu-latest
16
+ defaults:
17
+ run:
18
+ working-directory: ./terraform
19
20
+ steps:
21
+ - name: Checkout
22
+ uses: actions/checkout@v4
23
24
+ - name: Setup Terraform
25
+ uses: hashicorp/setup-terraform@v3
26
+ with:
27
+ terraform_version: ${{ env.TF_VERSION }}
28
29
+ - name: Terraform Init
30
+ run: terraform init -backend=false
31
32
+ - name: Terraform Format
33
+ run: terraform fmt -check
34
35
+ - name: Terraform Validate
36
+ run: terraform validate
0 commit comments