From 714aa7bb18269b4ff8c3430e6b30689d340f3fcd Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sun, 30 Jun 2024 17:53:35 +0100 Subject: [PATCH] flake/devshell: add `test-lib` command + improve `checks` --- flake-modules/dev/devshell.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/flake-modules/dev/devshell.nix b/flake-modules/dev/devshell.nix index fa5e494e..40794509 100644 --- a/flake-modules/dev/devshell.nix +++ b/flake-modules/dev/devshell.nix @@ -22,7 +22,11 @@ { name = "checks"; help = "Run all nixvim checks"; - command = "nix flake check"; + command = '' + echo "=> Running all nixvim checks..." + + ${nix} flake check "$@" + ''; } { name = "tests"; @@ -33,6 +37,15 @@ ${nix} build .#checks.${system}.tests "$@" ''; } + { + name = "test-lib"; + help = "Run nixvim library tests"; + command = '' + echo "=> Running nixvim library tests for the '${system}' architecture..." + + ${nix} build .#checks.${system}.lib-tests "$@" + ''; + } { name = "format"; help = "Format the entire codebase";