Bump @babel/traverse from 7.10.3 to 7.23.2 #102
Workflow file for this run
This file contains 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 | |
on: | |
pull_request: | |
branches: | |
- master | |
- 'v*' | |
jobs: | |
test-action: # make sure the action works on a clean machine without building | |
name: Test normal PR use | |
runs-on: ubuntu-latest | |
env: | |
tf_version: 0.12.27 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ env.tf_version }} | |
- run: terraform init | |
working-directory: __tests__ | |
- run: terraform plan -out test-plan.tfplan | |
working-directory: __tests__ | |
- uses: ./ | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: __tests__ | |
terraform-plan-file: test-plan.tfplan | |
test-action-plan-in-diff-dir: # make sure the action works with plan in different directory from working dir | |
name: Test TF plan in different dir | |
runs-on: ubuntu-latest | |
env: | |
tf_version: 0.12.27 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ env.tf_version }} | |
- run: terraform init | |
working-directory: __tests__ | |
- run: terraform plan -out ../test-plan.tfplan | |
working-directory: __tests__ | |
- uses: ./ | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: __tests__ | |
terraform-plan-file: ../test-plan.tfplan | |
comment-title: Terraform Plan in different dir | |
test-action-without-tf-wrapper: # make sure the action works without the terraform wrapper | |
name: Test without TF wrapper | |
runs-on: ubuntu-latest | |
env: | |
tf_version: 0.12.27 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ env.tf_version }} | |
terraform_wrapper: false | |
- run: terraform init | |
working-directory: __tests__ | |
- run: terraform plan -out test-plan.tfplan | |
working-directory: __tests__ | |
- uses: ./ | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: __tests__ | |
terraform-plan-file: test-plan.tfplan | |
comment-title: Terraform Plan without wrapper | |
test-action-at-root: # make sure the action works with terraform dir as root dir | |
name: Test from Root | |
runs-on: ubuntu-latest | |
env: | |
tf_version: 0.12.27 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: mv __tests__/* . | |
- uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ env.tf_version }} | |
- run: terraform init | |
- run: terraform plan -out test-plan.tfplan | |
- uses: ./ | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
terraform-plan-file: test-plan.tfplan | |
comment-title: Terraform Plan from root |