mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 08:32:34 +00:00
wrapper: Write stdout/stderr data to stream when received (#410)
* wrapper: write stdout/stderr data to stream when received * add a delay test * temp comment * uncomment actions * add changelog
This commit is contained in:
parent
5f32e8acaf
commit
99441ecd44
7 changed files with 85 additions and 18 deletions
31
.github/workflows/setup-terraform.yml
vendored
31
.github/workflows/setup-terraform.yml
vendored
|
|
@ -304,7 +304,6 @@ jobs:
|
|||
id: plan
|
||||
run: terraform plan
|
||||
|
||||
|
||||
terraform-stdout-wrapper:
|
||||
name: 'Terraform STDOUT'
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
@ -370,3 +369,33 @@ jobs:
|
|||
- name: Terraform Output to JQ
|
||||
id: output
|
||||
run: terraform output -json | jq '.pet.value'
|
||||
|
||||
# This test has an artificial delay for testing the streaming of STDOUT
|
||||
terraform-wrapper-delayed-apply:
|
||||
name: 'Terraform Delayed Apply'
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
working-directory: ./.github/workflows/data/delay
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
with:
|
||||
terraform_wrapper: true
|
||||
|
||||
- name: Terraform Init
|
||||
run: terraform init
|
||||
|
||||
- name: Terraform Format
|
||||
run: terraform fmt -check
|
||||
|
||||
- name: Terraform Apply
|
||||
id: apply
|
||||
run: terraform apply -auto-approve
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue