Skip to content

Commit cfb911f

Browse files
committed
changing terraform steps
1 parent 4380159 commit cfb911f

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/pipeline.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,22 @@ jobs:
3737
project_id: ${{ env.PIPELINE_PROJECT_ID }}
3838
credentials_json: ${{ env.PIPELINE_SA_KEY }}
3939

40-
- name: Setup Terraform
41-
uses: hashicorp/setup-terraform@v3
42-
40+
- uses: hashicorp/setup-terraform@v3
41+
42+
- name: Terraform fmt
43+
id: fmt
44+
run: terraform fmt -check
45+
continue-on-error: true
46+
4347
- name: Terraform Init
44-
run: |
45-
cd terraform/dev/
46-
terraform init
47-
48+
id: init
49+
run: terraform init
50+
51+
- name: Terraform Validate
52+
id: validate
53+
run: terraform validate -no-color
54+
4855
- name: Terraform Plan
4956
id: plan
50-
run: |
51-
cd terraform/dev/
52-
terraform plan -no-color
57+
run: terraform plan -no-color
5358
continue-on-error: true

0 commit comments

Comments
 (0)