ci: enforce prettier formatting #488

merged
opened by winter.bsky.social targeting master from push-pzwzzlwkkpnw
Changed files
+2 -13
.tangled
workflows
+2 -13
.tangled/workflows/fmt.yml
···
- event: ["push", "pull_request"]
branch: ["master"]
-
dependencies:
-
nixpkgs:
-
- go
-
- alejandra
-
steps:
-
- name: "nix fmt"
-
command: |
-
alejandra -c nix/**/*.nix flake.nix
-
-
- name: "go fmt"
+
- name: "Check formatting"
command: |
-
unformatted=$(gofmt -l .)
-
test -z "$unformatted" || (echo "$unformatted" && exit 1)
-
+
nix run .#fmt -- --ci