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.
This commit is contained in:
Fintan Halpenny 2026-04-29 11:07:29 +01:00 committed by Lorenz Leutgeb
parent b4707e5502
commit 92347a307f
1 changed files with 7 additions and 1 deletions

View File

@ -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