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 b6aac0c commit a8b9724
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,36 +164,36 @@ jobs:
cache: true

# Not working as expected.
# - name: Install OpenTofu ${{ matrix.opentofu_version }}
# uses: opentofu/setup-opentofu@v1
# with:
# tofu_version: "~${{ matrix.opentofu_version }}"
# tofu_wrapper: false

- name: Install OpenTofu ${{ matrix.opentofu_version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl \
--proto '=https' \
--tlsv1.2 \
-fsSL \
-o ${{ runner.temp }}/install-opentofu.sh \
https://get.opentofu.org/install-opentofu.sh
chmod +x ${{ runner.temp }}/install-opentofu.sh
${{ runner.temp }}/install-opentofu.sh \
--skip-verify \
--install-method standalone \
--install-path ${{ runner.temp }}/${{ matrix.opentofu_version }} \
--opentofu-version ${{ matrix.opentofu_version }} \
--debug
uses: opentofu/setup-opentofu@v1
with:
tofu_version: "~${{ matrix.opentofu_version }}"
tofu_wrapper: false

# - name: Install OpenTofu ${{ matrix.opentofu_version }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# curl \
# --proto '=https' \
# --tlsv1.2 \
# -fsSL \
# -o ${{ runner.temp }}/install-opentofu.sh \
# https://get.opentofu.org/install-opentofu.sh

# chmod +x ${{ runner.temp }}/install-opentofu.sh

# ${{ 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:
TF_ACC: 1
TF_ACC_TERRAFORM_PATH: tofu
TF_ACC_TERRAFORM_PATH: /usr/local/bin/tofu
TF_ACC_PROVIDER_NAMESPACE: hashicorp
TF_ACC_PROVIDER_HOST: registry.opentofu.org
run: |
Expand Down

0 comments on commit a8b9724

Please sign in to comment.