Skip to content

Commit d4fa2fe

Browse files
aknyshautofix-ci[bot]osterman
authored
Add tests for !terraform.output. Improve logging and error handling (#1235)
* updates * updates * updates * updates * updates * updates * updates * updates * updates * updates * updates * updates * updates * updates * updates * updates * updates * [autofix.ci] apply automated fixes * updates * updates * updates * updates * updates * updates * updates * updates * Apply suggestions from code review Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * updates * updates * updates * Apply suggestions from code review Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * updates * [autofix.ci] apply automated fixes * updates --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
1 parent c87cd51 commit d4fa2fe

File tree

28 files changed

+645
-306
lines changed

28 files changed

+645
-306
lines changed

.github/workflows/test.yml

+31-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919

2020
env:
2121
TERRAFORM_VERSION: "1.9.7"
22+
OPEN_TOFU_VERSION: "1.9.1"
2223

2324
jobs:
2425
# ensure the code builds...
@@ -115,11 +116,18 @@ jobs:
115116
}
116117
echo "${{ github.workspace }}" >> $Env:GITHUB_PATH
117118
118-
- uses: hashicorp/setup-terraform@v3
119+
- name: Install Terraform
120+
uses: hashicorp/setup-terraform@v3
119121
with:
120122
terraform_version: ${{ env.TERRAFORM_VERSION }}
121123
terraform_wrapper: false
122124

125+
- name: Install OpenTofu
126+
uses: opentofu/setup-opentofu@v1
127+
with:
128+
tofu_version: ${{ env.OPEN_TOFU_VERSION }}
129+
tofu_wrapper: false
130+
123131
- name: Check atmos.exe integrity
124132
if: matrix.flavor.target == 'windows'
125133
shell: pwsh
@@ -242,11 +250,18 @@ jobs:
242250
- name: Check out code into the Go module directory
243251
uses: actions/checkout@v4
244252

245-
- uses: hashicorp/setup-terraform@v3
253+
- name: Install Terraform
254+
uses: hashicorp/setup-terraform@v3
246255
with:
247256
terraform_version: ${{ env.TERRAFORM_VERSION }}
248257
terraform_wrapper: false
249258

259+
- name: Install OpenTofu
260+
uses: opentofu/setup-opentofu@v1
261+
with:
262+
tofu_version: ${{ env.OPEN_TOFU_VERSION }}
263+
tofu_wrapper: false
264+
250265
- name: Run tests for ${{ matrix.demo-folder }}
251266
run: |
252267
cd examples/${{ matrix.demo-folder }}
@@ -370,11 +385,18 @@ jobs:
370385
run: |
371386
echo "${{ github.workspace }}" >> $Env:GITHUB_PATH
372387
373-
- uses: hashicorp/setup-terraform@v3
388+
- name: Install Terraform
389+
uses: hashicorp/setup-terraform@v3
374390
with:
375391
terraform_version: ${{ env.TERRAFORM_VERSION }}
376392
terraform_wrapper: false
377393

394+
- name: Install OpenTofu
395+
uses: opentofu/setup-opentofu@v1
396+
with:
397+
tofu_version: ${{ env.OPEN_TOFU_VERSION }}
398+
tofu_wrapper: false
399+
378400
- name: Run tests in ${{ matrix.demo-folder }} for ${{ matrix.flavor.target }}
379401
working-directory: ${{ matrix.demo-folder }}
380402
if: matrix.flavor.target == 'linux' || matrix.flavor.target == 'macos'
@@ -442,6 +464,12 @@ jobs:
442464
terraform_version: ${{ env.TERRAFORM_VERSION }}
443465
terraform_wrapper: false
444466

467+
- name: Install OpenTofu
468+
uses: opentofu/setup-opentofu@v1
469+
with:
470+
tofu_version: ${{ env.OPEN_TOFU_VERSION }}
471+
tofu_wrapper: false
472+
445473
- name: Lint examples/${{ matrix.demo-folder }}/components/terraform
446474
uses: reviewdog/action-tflint@v1
447475
with:

examples/quick-start-advanced/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG GEODESIC_OS=debian
66
# https://atmos.tools/
77
# https://github.com/cloudposse/atmos
88
# https://github.com/cloudposse/atmos/releases
9-
ARG ATMOS_VERSION=1.173.0
9+
ARG ATMOS_VERSION=1.175.0
1010

1111
# Terraform: https://github.com/hashicorp/terraform/releases
1212
ARG TF_VERSION=1.5.7

go.mod

+23-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)