Skip to content

Commit

Permalink
Add GH action to run terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalzek committed Oct 11, 2024
1 parent 87279fb commit 5f03846
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/terraform-fmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run terraform fmt
on:
pull_request:

jobs:
terraform:
name: terraform fmt
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1

- name: Terraform Format
run: terraform fmt -check -recursive

0 comments on commit 5f03846

Please sign in to comment.