Skip to content

Commit

Permalink
test: Work on adding automated OpenTofu testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Feb 1, 2024
1 parent e255116 commit 4a1e899
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ jobs:
checkpoint-api.hashicorp.com:443
get.opentofu.org:443
github.com:443
objects.githubusercontent.com:443
proxy.golang.org:443
releases.hashicorp.com:443
storage.googleapis.com:443
Expand Down Expand Up @@ -177,12 +178,17 @@ jobs:
--proto '=https' \
--tlsv1.2 \
-fsSL \
-o ${{ runner.temp }}/tofu-${{ matrix.opentofu_version }}.zip \
https://github.com/opentofu/opentofu/releases/download/v${{ matrix.opentofu_version }}/tofu_${{ matrix.opentofu_version }}_linux_amd64.zip
-o ${{ runner.temp }}/install-opentofu.sh \
https://get.opentofu.org/install-opentofu.sh
unzip -d ${{ runner.temp }}/tofu-${{ matrix.opentofu_version }} ${{ runner.temp }}/tofu-${{ matrix.opentofu_version }}.zip
chmod +x ${{ runner.temp }}/install-opentofu.sh
ls -lahF ${{ runner.temp }}/
${{ runner.temp }}/install-opentofu.sh \
--skip-verify \
--install-method standalone \
--install-path ${{ runner.temp }}/${{ matrix.opentofu_version }} \
--opentofu-version ${{ matrix.opentofu_version }} \
--debug
- name: Run acceptance tests
env:
Expand Down

0 comments on commit 4a1e899

Please sign in to comment.