ci: overhaul workflows #64
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: Validate Terraform manifests | |
on: | |
pull_request: | |
jobs: | |
terraform: | |
name: terraform | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: ~1.9 | |
- name: Ensure Terraform code is formated | |
run: terraform fmt -check | |
- name: Terraform Init | |
run: terraform init | |
- name: Validate Terraform code | |
run: terraform validate -no-color |