Skip to content

Commit

Permalink
remove demo job from Build GH Actions workflow
Browse files Browse the repository at this point in the history
Per code review request, @dineshba would prefer this be kept in a
separate file.
  • Loading branch information
mdb committed Jan 24, 2024
1 parent b30b0cb commit 7a34e31
Showing 1 changed file with 0 additions and 56 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,59 +32,3 @@ jobs:

- name: Build
run: go build

demo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"

- name: Build
run: |
go build -o example/tf-summarize
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false

- name: Print tf-summarize version and help
run: |
./tf-summarize -v
./tf-summarize -h
working-directory: ./example

- name: Terraform Init
run: terraform init
working-directory: ./example

- name: Terraform Plan
run: |
terraform plan -out=tfplan -refresh=false # -refresh=false is only for demo workflow
terraform show -json tfplan > tfplan.json
working-directory: ./example

- name: summary in table format
run: terraform show -json tfplan | ./tf-summarize
working-directory: ./example

- name: summary in table format with plan JSON file passed
run: |
./tf-summarize tfplan.json
working-directory: ./example

- name: summary in tree format
run: terraform show -json tfplan | ./tf-summarize -tree
working-directory: ./example

- name: summary in separate tree format
run: terraform show -json tfplan | ./tf-summarize -separate-tree
working-directory: ./example

- name: summary in draw visual tree format
run: terraform show -json tfplan | ./tf-summarize -tree -draw
working-directory: ./example

0 comments on commit 7a34e31

Please sign in to comment.