2022-01-13 10:12:14 +01:00
|
|
|
---
|
2022-03-15 00:45:34 +01:00
|
|
|
name: Validate Terraform
|
2022-01-13 10:12:14 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
terraform:
|
|
|
|
name: Validate Terraform
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-01 20:38:57 +01:00
|
|
|
uses: actions/checkout@v3
|
2022-01-13 10:12:14 +01:00
|
|
|
- name: Setup Terraform
|
2022-04-19 09:30:39 +02:00
|
|
|
uses: hashicorp/setup-terraform@v2
|
2022-01-13 10:12:14 +01:00
|
|
|
- name: Terraform Format
|
|
|
|
run: terraform fmt -check -diff
|
|
|
|
- name: Terraform Init
|
|
|
|
run: terraform init
|
|
|
|
- name: Terraform Validate
|
|
|
|
run: terraform validate -no-color
|