Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
justfile: Add Rust tests to pre-push
Merged fintohaps opened 1 day ago

The tests should be part of the pre-push step. Introduce test-rust, as part of a new test group, and pre-push group.

1 file changed +7 -1 378365aa 92347a30
modified 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 nextest run --workspace --all-features --no-fail-fast