mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-24 12:17:09 +00:00
more logging -- is it working? more logging -- is it working? rerelease fix logging 2 more logging more logging add fail_on_detected_diff add fail_on_detected_diff 2 add fail_on_detected_diff 3 add fail_on_detected_diff 4 fix plan_fail id; two test more debug more debug - try getBooleanInput more debug - try getBooleanInput : add debug to raw js code more debug - try getBooleanInput : add debug stdout to raw js code try using "fail" as trigger instead of boolean
47 lines
1,003 B
YAML
47 lines
1,003 B
YAML
name: "build-test"
|
|
|
|
on: # rebuild any PRs and main branch changes
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
- fail_on_detected_diff
|
|
jobs:
|
|
|
|
exitcode:
|
|
name: 'Terraform Run Local Exitcode'
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./.github/workflows/data/local
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Terraform
|
|
uses: ./
|
|
with:
|
|
fail_on_detected_diff: true
|
|
|
|
- name: Terraform Init
|
|
shell: bash
|
|
run: terraform init
|
|
|
|
# - name: Terraform Format
|
|
# shell: bash
|
|
# run: terraform fmt -check
|
|
#
|
|
- name: Terraform Plan
|
|
id: plan
|
|
shell: bash
|
|
run: terraform plan
|
|
|
|
- name: Terraform Plan (fail)
|
|
id: plan_fail
|
|
shell: bash
|
|
run: terraform plan -detailed-exitcode
|
|
#
|
|
# - name: Print Terraform Plan
|
|
# shell: bash
|
|
# run: echo "${{ steps.plan.outputs.stdout }}"
|