Skip to content

Commit

Permalink
chore(just): Group just targets
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 24, 2024
1 parent fa2c7dc commit ca157a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . \
Expand All @@ -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

Expand Down

0 comments on commit ca157a3

Please sign in to comment.