Add EKS Karpenter support #1688
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |