Skip to content

AUT-2932: Enable email address checks #751

AUT-2932: Enable email address checks

AUT-2932: Enable email address checks #751

name: Pre-merge checks for Terraform
on:
pull_request:
paths: ["ci/terraform/**"]
types:
- opened
- reopened
- ready_for_review
- synchronize
jobs:
terraform-checks:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Get Terraform version
id: get-terraform-version
run: echo "version=$(cat ci/terraform/.terraform-version)" >> "${GITHUB_OUTPUT}"
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ${{ steps.get-terraform-version.outputs.version }}
- name: Terraform Format Check
working-directory: ci/terraform/
run: terraform fmt -check -recursive
- name: Terraform Validate
working-directory: ci/terraform/
run: |
terraform init -input=false -backend=false
terraform validate