terraform-hcloud-kube-hetzner/.github/workflows/validate-terraform.yaml
Kasper Juul Hermansen cc196194dd
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Update hashicorp/setup-terraform action to v3
2023-10-30 11:49:12 +00:00

25 lines
507 B
YAML

---
name: Validate Terraform
on:
push:
branches:
- master
pull_request:
jobs:
terraform:
name: Validate Terraform
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform Format
run: terraform fmt -check -diff
- name: Terraform Init
run: terraform init
- name: Terraform Validate
run: terraform validate -no-color