File tree 2 files changed +49
-1
lines changed
2 files changed +49
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : ' Terraform'
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - " main"
8
+ pull_request :
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ jobs :
14
+ terraform :
15
+ name : ' Terraform'
16
+ runs-on : ubuntu-latest
17
+
18
+ # Use the Bash shell regardless whether the GitHub Actions
19
+ # runner is ubuntu-latest, macos-latest, or windows-latest
20
+ defaults :
21
+ run :
22
+ shell : bash
23
+
24
+ steps :
25
+ # Checkout the repository to the GitHub Actions runner
26
+ - name : Checkout
27
+ uses : actions/checkout@v3
28
+
29
+ # Install the latest version of Terraform CLI
30
+ - name : Setup Terraform
31
+ uses : hashicorp/setup-terraform@v2
32
+ with :
33
+ terraform_version : 1.3.9
34
+
35
+ # Initialize a new or existing Terraform working directory by
36
+ # creating initial files, loading any remote state, downloading
37
+ # modules, etc.
38
+ - name : Terraform Init
39
+ run : terraform init
40
+
41
+ # Checks that all Terraform configuration files adhere to a
42
+ # canonical format
43
+ - name : Terraform Format
44
+ run : terraform fmt -check
45
+
46
+ # Checks that Terraform configuration is valid
47
+ - name : Terraform Validate
48
+ run : terraform validate
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ terraform {
7
7
# }
8
8
9
9
random = {
10
- source = " hashicorp/random"
10
+ source = " hashicorp/random"
11
11
version = " ~> 3.4.3"
12
12
}
13
13
}
You can’t perform that action at this time.
0 commit comments