Skip to content

add terraform for provision an AWS EKS cluster #2

add terraform for provision an AWS EKS cluster

add terraform for provision an AWS EKS cluster #2

name: "Check Terraform files"
on:
pull_request:
paths:
- "terraform/**"
jobs:
check:
name: "Run Terraform fmt and validate"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Terraform"
uses: hashicorp/setup-terraform@v3
- name: "Run terraform fmt"
run: terraform fmt -check -recursive
working-directory: terraform
- name: "Run terraform validate"
run: terraform validate
if: always()
working-directory: terraform