From cb27acc059a84a7bce8bb74ef99ecc199bbe02ce Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sat, 6 Jul 2024 12:40:09 +0200 Subject: [PATCH] CI: Add `terraform validate` command --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab6f1fd9e..eb44e3b02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -on: [push, pull_request] +on: [ push, pull_request ] jobs: rust: @@ -25,6 +25,9 @@ jobs: steps: - uses: actions/checkout@master + - name: Ensure the terraform files are semantically valid + run: terraform validate + - name: Ensure the terraform files are formatted correctly run: terraform fmt -check -diff -recursive