ci: add a "terraform fmt" check on pushes/PRs (#298)
Pierre Bourdon committed
Oct 29, 2023 at 00:50 UTC
48b42234802d02702c1e506935e7d1b4cdaa01c3
1 file changed
+24
.github/workflows/terraform-fmt.yml
new
+24
@@ -0,0 +1,24 @@
1
+name: Check Terraform formatting
2
+
3
+on:
4
+ push:
5
+ pull_request:
6
+
7
+permissions:
8
+ contents: read
9
+
10
+jobs:
11
+ terraform-fmt:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+
16
+ - name: Check terraform/ formatting
17
+ uses: dflook/terraform-fmt-check@v1
18
+ with:
19
+ path: terraform
20
+
21
+ - name: Check terraform-iam/ formatting
22
+ uses: dflook/terraform-fmt-check@v1
23
+ with:
24
+ path: terraform-iam