Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add terraform validate command #438

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on: [push, pull_request]
on: [ push, pull_request ]

jobs:
rust:
Expand All @@ -25,6 +25,9 @@ jobs:
steps:
- uses: actions/checkout@master

- name: Ensure the terraform files are semantically valid
run: terraform validate

Copy link
Member

@Noratrieb Noratrieb Jul 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't do anything here at the top-level (as there are no Terraform config files here), it needs to be run in a Terraform configuration directory.

- name: Ensure the terraform files are formatted correctly
run: terraform fmt -check -diff -recursive

Expand Down
Loading