From 92347a307f2868848a12cbbeea5ce816d77e4dcc Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 29 Apr 2026 11:07:29 +0100 Subject: [PATCH] justfile: Add Rust tests to pre-push The tests should be part of the pre-push step. Introduce `test-rust`, as part of a new `test` group, and `pre-push` group. --- justfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 57f1f992..a272c087 100644 --- a/justfile +++ b/justfile @@ -114,7 +114,7 @@ format-nix: # Run pre-push checks [group('hooks')] -pre-push: check-conflict-markers format-rust check-rust check-keywords check-docs check-spelling check-scripts check-typos format-nix lint-rust +pre-push: check-conflict-markers format-rust check-rust check-keywords check-docs check-spelling check-scripts check-typos format-nix lint-rust test-rust @echo "" @echo "{{SUCCESS}}pre-push passed!{{NORMAL}}" @echo "" @@ -144,3 +144,9 @@ install-hooks: [group('hooks')] check-hooks: @HINT="{{HINT}}" NORMAL="{{NORMAL}}" WARN="{{WARN}}" scripts/just/check-hooks.sh "{{hook-script}}" "{{hooks}}" + +[group('test')] +[group('pre-push')] +test-rust: + @echo "{{CHECK}}Cargo test...{{NORMAL}}" + @{{cargo_cmd}} nextest run --workspace --all-features --no-fail-fast