Skip to content

Commit 9892d95

Browse files
committed
updates
1 parent ea2c59e commit 9892d95

File tree

3 files changed

+43
-15
lines changed

3 files changed

+43
-15
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:

go.mod

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

go.sum

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

0 commit comments

Comments
 (0)