Skip to content

DOE-212 Infracost integration in pipeline #25

DOE-212 Infracost integration in pipeline

DOE-212 Infracost integration in pipeline #25

name: "Test Deploy Terraform stacks"
# Regression testing to try and catch and breaking changes
on:
pull_request:
branches:
- main
paths:
- .github/workflows/terraform-plan-apply.yml
- .github/workflows/_test-terraform-plan-apply.yml
- .github/workflows/terraform-core.yml
jobs:
deploy_tf_stacks_regression_test:
name: Test using devops-terraform-example-project@main
uses: ./.github/workflows/terraform-plan-apply.yml
with:
repo: ukhsa-collaboration/devops-terraform-example-project
ref: "main"
execute_terraform_plan: true
permissions:
packages: read
actions: read
contents: write
security-events: write
statuses: write
checks: write
id-token: write
pull-requests: write
secrets:
REPO_SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
AWS_ACCOUNT_ID: ${{ secrets.TEST_AWS_ACCOUNT_ID }}
AWS_ROLE_NAME: ${{ secrets.TEST_AWS_ROLE_NAME }}
TF_MODULES_SSH_DEPLOY_KEY: ${{ secrets.TF_MODULES_SSH_DEPLOY_KEY }}
INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}