Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Set Up Staging Environment #4

Set Up Staging Environment

Set Up Staging Environment #4

name: Infrastructure
on:
pull_request:
branches:
- main
paths:
- 'infrastructure/**'
- '.github/workflows/pull-request-terraform-plan.yml'
jobs:
plan:
name: Plan
runs-on: ubuntu-latest
defaults:
run:
working-directory: infrastructure
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
cli_config_credentials_hostname: 'app.terraform.io'
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
terraform_version: 1.4
terraform_wrapper: false
- run: terraform init
- run: terraform validate
- run: terraform plan -no-color