From 7a34e31d10733ae8c22b2169a878eb58f4b7df83 Mon Sep 17 00:00:00 2001 From: Mike Ball Date: Wed, 24 Jan 2024 15:46:10 -0500 Subject: [PATCH] remove `demo` job from Build GH Actions workflow Per code review request, @dineshba would prefer this be kept in a separate file. --- .github/workflows/build.yml | 56 ------------------------------------- 1 file changed, 56 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb6994d..009e368 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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