flake/devshell: add test-lib command + improve checks

This commit is contained in:
Matt Sturgeon 2024-06-30 17:53:35 +01:00
parent 662a0e1bdb
commit 714aa7bb18
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -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";