@@ -16,8 +16,13 @@ permissions:
1616 id-token : write # This is required for requesting the JWT
1717
1818jobs :
19+ check-conventional-commits :
20+ uses :
armakuni/github-actions/.github/workflows/[email protected] 21+
1922 run-unit-tests :
2023 runs-on : ubuntu-latest
24+ needs :
25+ - check-conventional-commits
2126 defaults :
2227 run :
2328 working-directory : infrastructure/bootstrap
3641 terraform_version : 1.5.7
3742 # https://github.com/gruntwork-io/terragrunt/issues/1202
3843 terraform_wrapper : false
39-
44+
4045 - name : Terraform Init
4146 id : init
4247 run : terraform init -backend-config=./backend-config-test.hcl
4550 ARM_SUBSCRIPTION_ID : ${{ secrets.AZ_SUBSCRIPTION_ID }}
4651 ARM_TENANT_ID : ${{ secrets.AZ_TENANT_ID }}
4752 ARM_USE_OIDC : true
48-
53+
4954 - uses : actions/setup-go@v4
5055 with :
5156 go-version : 1.21.0
6772
6873 terraform-compliance :
6974 runs-on : ubuntu-latest
75+ needs :
76+ - check-conventional-commits
7077 defaults :
7178 run :
7279 working-directory : infrastructure/bootstrap
93100 - uses : hashicorp/setup-terraform@v2
94101 with :
95102 terraform_version : 1.5.7
96-
103+
97104 - name : Terraform Init
98105 id : init
99106 run : terraform init -backend-config=./dev/backend-config.hcl
@@ -118,6 +125,8 @@ jobs:
118125
119126 tf-code-lint-and-sast :
120127 runs-on : ubuntu-latest
128+ needs :
129+ - check-conventional-commits
121130 defaults :
122131 run :
123132 working-directory : infrastructure/bootstrap
@@ -138,7 +147,7 @@ jobs:
138147
139148 - name : Lint TF code
140149 run : tflint --chdir ./
141-
150+
142151 - name : Log in to Azure using OIDC
143152 uses : azure/login@v1
144153 with :
@@ -180,7 +189,7 @@ jobs:
180189 - uses : hashicorp/setup-terraform@v2
181190 with :
182191 terraform_version : 1.5.7
183-
192+
184193 - name : Terraform Init
185194 id : init
186195 run : terraform init -backend-config=./dev/backend-config.hcl -var-file=./dev/terraform.tfvars
@@ -198,7 +207,7 @@ jobs:
198207 ARM_SUBSCRIPTION_ID : ${{ secrets.AZ_SUBSCRIPTION_ID }}
199208 ARM_TENANT_ID : ${{ secrets.AZ_TENANT_ID }}
200209 ARM_USE_OIDC : true
201-
210+
202211 dev-terraform-apply :
203212 runs-on : ubuntu-latest
204213 needs :
@@ -219,7 +228,7 @@ jobs:
219228 - uses : hashicorp/setup-terraform@v2
220229 with :
221230 terraform_version : 1.5.7
222-
231+
223232 - name : Terraform Init
224233 id : init
225234 run : terraform init -backend-config=./dev/backend-config.hcl -var-file=./dev/terraform.tfvars
@@ -237,7 +246,7 @@ jobs:
237246 ARM_SUBSCRIPTION_ID : ${{ secrets.AZ_SUBSCRIPTION_ID }}
238247 ARM_TENANT_ID : ${{ secrets.AZ_TENANT_ID }}
239248 ARM_USE_OIDC : true
240-
249+
241250 placeholder-dev-infra-e2e-test :
242251 runs-on : ubuntu-latest
243252 needs :
@@ -246,7 +255,7 @@ jobs:
246255 - name : Placeholder for placeholder-dev-infra-e2e-test
247256 run : |
248257 echo "Implement e2e test and execute them here in the pipeline"
249-
258+
250259 placeholder-pre-terraform-plan :
251260 runs-on : ubuntu-latest
252261 needs :
@@ -255,7 +264,7 @@ jobs:
255264 - name : Placeholder for placeholder-dev-infra-e2e-test
256265 run : |
257266 echo "Implement e2e test and execute them here in the pipeline"
258-
267+
259268 placeholder-pre-terraform-apply :
260269 runs-on : ubuntu-latest
261270 needs :
@@ -273,7 +282,7 @@ jobs:
273282 - name : Placeholder for placeholder-dev-infra-e2e-test
274283 run : |
275284 echo "Implement e2e test and execute them here in the pipeline"
276-
285+
277286 placeholder-prod-terraform-plan :
278287 runs-on : ubuntu-latest
279288 needs :
@@ -300,7 +309,7 @@ jobs:
300309 - name : Placeholder for placeholder-dev-infra-e2e-test
301310 run : |
302311 echo "Implement e2e test and execute them here in the pipeline"
303-
312+
304313 placeholder-prod-terraform-apply :
305314 runs-on : ubuntu-latest
306315 needs :
@@ -317,4 +326,4 @@ jobs:
317326 steps :
318327 - name : Placeholder for placeholder-dev-infra-e2e-test
319328 run : |
320- echo "Implement e2e test and execute them here in the pipeline"
329+ echo "Implement e2e test and execute them here in the pipeline"
0 commit comments