From ca157a3c33fd9bee56ef23534c37d7e27bd44751 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 24 Oct 2024 18:49:05 -0400 Subject: [PATCH] chore(just): Group just targets --- justfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/justfile b/justfile index 20591ef4..c4a80e67 100644 --- a/justfile +++ b/justfile @@ -7,14 +7,17 @@ changelog: cz ch --start-rev $(git describe --tags --abbrev=0 HEAD^) --incremental # Run example/simple +[group('example')] ex-simple: cd ./example/simple && nix run . --override-input services-flake ../.. # Run example/llm +[group('example')] ex-llm: cd ./example/llm && nix run . --override-input services-flake ../.. # Run example/share-services +[group('example')] ex-share-services: cd ./example/share-services/pgweb && \ nix run . \ @@ -26,19 +29,23 @@ fmt: treefmt # Run native tests for all the services +[group('test')] test-all: nix flake check test/ --override-input services-flake . -L # `nix flake check` doesn't support individual checks: https://github.com/NixOS/nix/issues/8881 # Run native test for a specific service +[group('test')] test service: nix build ./test#checks.$(nix eval --impure --expr "builtins.currentSystem").{{service}} --override-input services-flake . -L # Run doc server with hot-reload +[group('doc')] doc: cd ./doc && nix run # Build docs static website (this runs linkcheck automatically) +[group('doc')] doc-static: nix build ./doc