-
-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (36 loc) · 889 Bytes
/
terraform.yml
File metadata and controls
44 lines (36 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Terraform validation
on:
push:
branches:
- main
pull_request:
jobs:
terraform-fmt:
name: Terraform Format
runs-on: ubuntu-latest
defaults:
run:
working-directory: terraform
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform Format
run: terraform fmt -check -recursive
terraform-validate:
name: Terraform Validate
runs-on: ubuntu-latest
needs: terraform-fmt
defaults:
run:
working-directory: terraform
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform Init
run: terraform init -backend=false
- name: Terraform Validate
run: terraform validate