forked from tangled.org/core
this repo has no description

ci: check formatting with treefmt

Signed-off-by: Winter <winter@winter.cafe>

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"
+
- name: "Check formatting"
command: |
-
alejandra -c nix/**/*.nix flake.nix
-
-
- name: "go fmt"
-
command: |
-
unformatted=$(gofmt -l .)
-
test -z "$unformatted" || (echo "$unformatted" && exit 1)
-
+
nix run .#fmt -- --ci