From dfc91bcd596cf42b03808dbc6d7955dcf582b8d4 Mon Sep 17 00:00:00 2001 From: Winter Date: Wed, 13 Aug 2025 17:34:23 +0000 Subject: [PATCH] ci: check formatting with treefmt Signed-off-by: Winter --- .tangled/workflows/fmt.yml | 15 ++------------- 1 file(s) changed, 2 insertion(s)(+), 13 deletion(s)(-) diff --git a/.tangled/workflows/fmt.yml b/.tangled/workflows/fmt.yml --- a/.tangled/workflows/fmt.yml +++ b/.tangled/workflows/fmt.yml @@ -2,18 +2,7 @@ - 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 -- tangled.sh