use cargo nextest for pre push runs

This commit is contained in:
Felipe 2025-02-24 23:49:04 -03:00
parent 930e33ba93
commit 3751740489
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

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