7
7
paths-ignore :
8
8
- " modules/*/lambdas/**"
9
9
10
+ permissions :
11
+ contents : read
12
+ pull-requests : write
13
+
10
14
env :
11
15
AWS_REGION : eu-west-1
12
16
jobs :
13
17
verify_module :
14
18
name : Verify module
15
19
strategy :
16
20
matrix :
17
- terraform : [1.1.3 , "latest"]
21
+ terraform : [1.3.2 , "latest"]
18
22
runs-on : ubuntu-latest
19
23
container :
20
24
image : hashicorp/terraform:${{ matrix.terraform }}
28
32
touch modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/runner-binaries-syncer.zip
29
33
- name : terraform init
30
34
run : terraform init -get -backend=false -input=false
31
- - if : contains(matrix.terraform, '1.1 .')
35
+ - if : contains(matrix.terraform, '1.3 .')
32
36
name : check terraform formatting
33
37
run : terraform fmt -recursive -check=true -write=false
34
38
- if : contains(matrix.terraform, 'latest') # check formatting for the latest release but avoid failing the build
@@ -37,13 +41,21 @@ jobs:
37
41
continue-on-error : true
38
42
- name : validate terraform
39
43
run : terraform validate
44
+ - if : contains(matrix.terraform, '1.3.')
45
+ name : Setup TFLint
46
+ uses : terraform-linters/setup-tflint@v2
47
+ with :
48
+ github_token : ${{ secrets.GITHUB_TOKEN }}
49
+ - if : contains(matrix.terraform, '1.3.')
50
+ name : Run TFLint
51
+ run : tflint -f compact
40
52
41
53
verify_examples :
42
54
name : Verify examples
43
55
strategy :
44
56
fail-fast : false
45
57
matrix :
46
- terraform : [1.0.11, 1.1.3 , "latest"]
58
+ terraform : [1.3.0 , "latest"]
47
59
example :
48
60
["default", "ubuntu", "prebuilt", "arm64", "ephemeral", "windows"]
49
61
defaults :
56
68
- uses : actions/checkout@v3
57
69
- name : terraform init
58
70
run : terraform init -get -backend=false -input=false
59
- - if : contains(matrix.terraform, '1.1 .')
71
+ - if : contains(matrix.terraform, '1.3 .')
60
72
name : check terraform formatting
61
73
run : terraform fmt -recursive -check=true -write=false
62
74
- if : contains(matrix.terraform, 'latest') # check formatting for the latest release but avoid failing the build
65
77
continue-on-error : true
66
78
- name : validate terraform011
67
79
run : terraform validate
80
+
81
+
82
+ verify_multi_runner_example :
83
+ name : Verify Multi-Runner examples
84
+ strategy :
85
+ fail-fast : false
86
+ matrix :
87
+ terraform : [1.3.2, "latest"]
88
+ defaults :
89
+ run :
90
+ working-directory : examples/multi-runner
91
+ runs-on : ubuntu-latest
92
+ container :
93
+ image : hashicorp/terraform:${{ matrix.terraform }}
94
+ steps :
95
+ - uses : actions/checkout@v3
96
+ - name : terraform init
97
+ run : terraform init -get -backend=false -input=false
98
+ - if : contains(matrix.terraform, '1.3.')
99
+ name : check terraform formatting
100
+ run : terraform fmt -recursive -check=true -write=false
101
+ - if : contains(matrix.terraform, 'latest') # check formatting for the latest release but avoid failing the build
102
+ name : check terraform formatting
103
+ run : terraform fmt -recursive -check=true -write=false
104
+ continue-on-error : true
105
+ - name : validate terraform
106
+ run : terraform validate
107
+
0 commit comments