add terraform for provision an AWS EKS cluster #1
Workflow file for this run
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: "Check Terraform files" | |
on: | |
pull_request: {} | |
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 |