Skip to content

Commit

Permalink
Update integrate.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LamSut authored Dec 19, 2024
1 parent 7a19106 commit 2a91284
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@ jobs:
- name: Terraform Validate
run: terraform validate

test:
runs-on: ubuntu-latest
needs: validate
steps:
- name: Checkout Code
uses: actions/checkout@v3
# test:
# runs-on: ubuntu-latest
# needs: validate
# steps:
# - name: Checkout Code
# uses: actions/checkout@v3

- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6
# - name: Set up Terraform
# uses: hashicorp/setup-terraform@v2
# with:
# terraform_version: 1.6

- name: Terraform Init
run: terraform init
# - name: Terraform Init
# run: terraform init

- name: Terraform Test
run: terraform test
# - name: Terraform Test
# run: terraform test

plan:
runs-on: ubuntu-latest
needs: test
needs: validate
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand All @@ -63,4 +63,10 @@ jobs:
run: terraform init

- name: Terraform Plan
run: terraform plan
run: terraform plan -out=planfile

- name: Upload Planfile as Artifact
uses: actions/upload-artifact@v3
with:
name: terraform-planfile
path: planfile

0 comments on commit 2a91284

Please sign in to comment.