Skip to content

Merge pull request #6 from K1Hyve/patch-1 #18

Merge pull request #6 from K1Hyve/patch-1

Merge pull request #6 from K1Hyve/patch-1 #18

Workflow file for this run

name: TF Validate Cluster
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
TERRAFORM_VERSION: 1.4.2
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./cluster
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ env.TERRAFORM_VERSION }}
- name: Init
run: terraform init
- name: Format
run: terraform fmt -check
- name: Validate
run: terraform validate -no-color