Skip to content

Merge pull request #123 from PermanentOrg/fix_terraform_variable_names #308

Merge pull request #123 from PermanentOrg/fix_terraform_variable_names

Merge pull request #123 from PermanentOrg/fix_terraform_variable_names #308

name: Validate Terraform (test envs)
on:
push:
paths:
- ./terraform/test_cluster/**
jobs:
validate_terraform:
name: "Validate Terraform"
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./terraform/test_cluster
steps:
- uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
cli_config_credentials_token: ${{ secrets.TERRAFORM_API_TOKEN }}
- name: Terraform Format
id: fmt
run: terraform fmt -check
- name: Terraform Init
id: init
run: terraform init
- name: Terraform Validate
id: validate
run: terraform validate -no-color