+2
-13
.tangled/workflows/fmt.yml
+2
-13
.tangled/workflows/fmt.yml
···
2
2
- event: ["push", "pull_request"]
3
3
branch: ["master"]
4
4
5
-
dependencies:
6
-
nixpkgs:
7
-
- go
8
-
- alejandra
9
-
10
5
steps:
11
-
- name: "nix fmt"
6
+
- name: "Check formatting"
12
7
command: |
13
-
alejandra -c nix/**/*.nix flake.nix
14
-
15
-
- name: "go fmt"
16
-
command: |
17
-
unformatted=$(gofmt -l .)
18
-
test -z "$unformatted" || (echo "$unformatted" && exit 1)
19
-
8
+
nix run .#fmt -- --ci