Skip to content

Update actions/checkout action to v4 #61

Update actions/checkout action to v4

Update actions/checkout action to v4 #61

name: "Integration Tests"
on:
workflow_dispatch: {}
pull_request:
types: [opened, synchronize, reopened]
env:
AWS_REGION: us-east-2
# Permissions required for assuming AWS identity
permissions:
id-token: write
contents: read
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Plan Atmos Component
uses: cloudposse/github-action-atmos-terraform-plan@main
with:
component: "foobar"
stack: "plat-ue2-sandbox"
component-path: "components/terraform/foobar"
terraform-plan-role: ${{ secrets.TERRAFORM_APPLY_ROLE }}
terraform-state-role: ${{ secrets.TERRAFORM_STATE_ROLE }}
terraform-state-bucket: ${{ secrets.TERRAFORM_STATE_BUCKET }}
terraform-state-table: ${{ secrets.TERRAFORM_STATE_TABLE }}
terraform-version: "1.5.2"
aws-region: ${{ env.AWS_REGION }}
test:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Apply Atmos Component
uses: ./
with:
component: "foobar"
stack: "plat-ue2-sandbox"
component-path: "components/terraform/foobar"
terraform-apply-role: ${{ secrets.TERRAFORM_APPLY_ROLE }}
terraform-state-role: ${{ secrets.TERRAFORM_STATE_ROLE }}
terraform-state-bucket: ${{ secrets.TERRAFORM_STATE_BUCKET }}
terraform-state-table: ${{ secrets.TERRAFORM_STATE_TABLE }}
terraform-version: "1.5.2"
aws-region: ${{ env.AWS_REGION }}