mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-17 15:28:33 +03:00
just: test specific service (#101)
This commit is contained in:
parent
76beca31cc
commit
29781d10d0
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
||||
.direnv
|
||||
# created when `just test <service>` is used
|
||||
/result
|
||||
|
@ -27,6 +27,11 @@
|
||||
inputsFrom = [
|
||||
config.treefmt.build.devShell
|
||||
];
|
||||
shellHook = ''
|
||||
echo
|
||||
echo "🍎🍎 Run 'just <recipe>' to get started"
|
||||
just
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
9
justfile
9
justfile
@ -9,6 +9,11 @@ ex:
|
||||
fmt:
|
||||
treefmt
|
||||
|
||||
# Run native tests
|
||||
test:
|
||||
# Run native tests for all the services
|
||||
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
|
||||
test service:
|
||||
nix build ./test#checks.$(nix eval --impure --expr "builtins.currentSystem").{{service}} --override-input services-flake . -L
|
||||
|
Loading…
Reference in New Issue
Block a user