🔖 v2.0.1 #50
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test OpenTofu early eval | |
on: | |
- pull_request | |
permissions: | |
contents: read | |
jobs: | |
s3-backend: | |
runs-on: ubuntu-24.04 | |
name: Plan with early eval | |
permissions: | |
contents: read | |
pull-requests: write | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: tofu plan | |
uses: ./tofu-plan | |
id: plan | |
with: | |
path: tests/workflows/test-early-eval/s3 | |
variables: | | |
passphrase = "tofuqwertyuiopasdfgh" | |
- name: Verify outputs | |
env: | |
JSON_PLAN_PATH: ${{ steps.plan.outputs.json_plan_path }} | |
run: | | |
if [[ ! -f "$JSON_PLAN_PATH" ]]; then | |
echo "::error:: json_plan_path not set correctly" | |
exit 1 | |
fi | |
- name: tofu apply | |
uses: ./tofu-apply | |
with: | |
path: tests/workflows/test-early-eval/s3 | |
variables: | | |
passphrase = "tofuqwertyuiopasdfgh" | |
- name: Create workspace | |
uses: ./tofu-new-workspace | |
with: | |
path: tests/workflows/test-early-eval/s3 | |
workspace: test-workspace | |
variables: | | |
passphrase = "tofuqwertyuiopasdfgh" | |
- name: Create workspace again | |
uses: ./tofu-new-workspace | |
with: | |
path: tests/workflows/test-early-eval/s3 | |
workspace: test-workspace | |
variables: | | |
passphrase = "tofuqwertyuiopasdfgh" | |
- name: Destroy workspace | |
uses: ./tofu-destroy-workspace | |
with: | |
path: tests/workflows/test-early-eval/s3 | |
workspace: test-workspace | |
variables: | | |
passphrase = "tofuqwertyuiopasdfgh" |