replace terraform format check with nix fmt
This now also checks terraform and more. And it can run locally!
Jörg Thalheim committed
Aug 17, 2024 at 10:10 UTC
21504206104462672e801db3b2b6b34fd58497d5
2 files changed
+19
-24
.github/workflows/ci.yml
new
+19
@@ -0,0 +1,19 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ merge_group:
9
+
10
+permissions:
11
+ contents: read
12
+
13
+jobs:
14
+ nix-fmt:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ - uses: cachix/install-nix-action@v27
19
+ - run: nix fmt -- --fail-on-change
.github/workflows/terraform-fmt.yml
deleted
-24
@@ -1,24 +0,0 @@
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