mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
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:
committed by
Lorenz Leutgeb
parent
b4707e5502
commit
92347a307f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user