Skip to content

Add EKS Karpenter support #1688

Add EKS Karpenter support

Add EKS Karpenter support #1688

name: Terraform Validate
on:
pull_request:
paths:
- '**.tf'
- '**.tfvars'
env:
TERRAFORM_AZURE_MODULES_DIR: modules/terraform/azure
TERRAFORM_AWS_MODULES_DIR: modules/terraform/aws
jobs:
terraform-validate:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.6
- name: Terraform Format Check
if: always()
run: terraform fmt --check -recursive --diff
- name: Terraform Azure Validation Check
if: always()
working-directory: ${{ env.TERRAFORM_AZURE_MODULES_DIR }}
run: |
terraform init
terraform validate
- name: Terraform AWS Validation Check
if: always()
working-directory: ${{ env.TERRAFORM_AWS_MODULES_DIR }}
run: |
terraform init
terraform validate