From 375174048942602e4360f7e1a059ff6b9f4121c8 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Salinas Date: Mon, 24 Feb 2025 23:49:04 -0300 Subject: [PATCH] use cargo nextest for pre push runs --- hooks/pre-push.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hooks/pre-push.sh b/hooks/pre-push.sh index a8263d7..8ae487a 100755 --- a/hooks/pre-push.sh +++ b/hooks/pre-push.sh @@ -1,16 +1,14 @@ #!/bin/bash set -eu -if ! cargo clippy --all-targets -- -D warnings -then - echo "There are some clippy issues." - exit 1 +if ! cargo clippy --all-targets -- -D warnings; then + echo "There are some clippy issues." + exit 1 fi -if ! cargo test -then - echo "There are some test issues." - exit 1 +if ! cargo nextest run; then + echo "There are some test issues." + exit 1 fi exit 0