2024-02-24 15:24:57 +03:00
|
|
|
# List all the just commands
|
2023-07-20 01:33:15 +03:00
|
|
|
default:
|
|
|
|
@just --list
|
|
|
|
|
2024-04-01 01:10:37 +03:00
|
|
|
# Generate CHANGELOG under `Unreleased`, starting from the previous release
|
|
|
|
changelog:
|
|
|
|
cz ch --start-rev $(git describe --tags --abbrev=0 HEAD^) --incremental
|
|
|
|
|
2024-03-11 21:05:30 +03:00
|
|
|
# Run example/simple
|
|
|
|
ex-simple:
|
|
|
|
cd ./example/simple && nix run . --override-input services-flake ../..
|
|
|
|
|
|
|
|
# Run example/share-services
|
|
|
|
ex-share-services:
|
|
|
|
cd ./example/share-services/pgweb && \
|
|
|
|
nix run . \
|
|
|
|
--override-input services-flake ../../.. \
|
|
|
|
--override-input northwind ../northwind \
|
2023-07-20 01:33:15 +03:00
|
|
|
|
|
|
|
# Auto-format the project tree
|
|
|
|
fmt:
|
|
|
|
treefmt
|
2023-08-23 20:17:20 +03:00
|
|
|
|
2024-02-19 08:42:43 +03:00
|
|
|
# Run native tests for all the services
|
|
|
|
test-all:
|
2023-08-23 20:17:20 +03:00
|
|
|
nix flake check test/ --override-input services-flake . -L
|
2024-02-19 08:42:43 +03:00
|
|
|
|
|
|
|
# `nix flake check` doesn't support individual checks: https://github.com/NixOS/nix/issues/8881
|
|
|
|
# Run native test for a specific service
|
|
|
|
test service:
|
|
|
|
nix build ./test#checks.$(nix eval --impure --expr "builtins.currentSystem").{{service}} --override-input services-flake . -L
|
2024-02-24 15:24:57 +03:00
|
|
|
|
|
|
|
# Run doc server with hot-reload
|
|
|
|
doc:
|
2024-03-13 14:57:52 +03:00
|
|
|
cd ./doc && nix run
|
2024-03-13 02:33:56 +03:00
|
|
|
|
|
|
|
# Build docs static website (this runs linkcheck automatically)
|
|
|
|
doc-static:
|
|
|
|
nix build ./doc
|
2024-02-24 15:24:57 +03:00
|
|
|
|
|
|
|
# Run service whose configuration is defined in `<service>_test.nix`
|
|
|
|
run service:
|
|
|
|
cd test && nix run .#{{service}} --override-input services-flake ../
|