Skip to content

ATO-1144: Add infrastructure for new IPV JWKS endpoint #4260

ATO-1144: Add infrastructure for new IPV JWKS endpoint

ATO-1144: Add infrastructure for new IPV JWKS endpoint #4260

name: Pre-merge checks for Terraform
on:
pull_request:
paths: ["ci/terraform/**"]
types:
- opened
- reopened
- ready_for_review
- synchronize
jobs:
terraform-checks:
name: Terraform Validate
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get Terraform version
id: get-terraform-version
run: echo "version=$(cat ci/terraform/.terraform-version)" >> "${GITHUB_OUTPUT}"
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
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 (account-management)
working-directory: ci/terraform/account-management
run: |
terraform init -input=false -backend=false
terraform validate
- name: Terraform Validate (oidc)
working-directory: ci/terraform/oidc
run: |
terraform init -input=false -backend=false
terraform validate
- name: Terraform Validate (utils)
working-directory: ci/terraform/utils
run: |
terraform init -input=false -backend=false
terraform validate