install nextest
All checks were successful
Backend Actions / check (push) Successful in 14s
Backend Actions / build (push) Successful in 20s
Backend Actions / test (push) Successful in 3m27s

This commit is contained in:
2025-07-24 20:43:25 +01:00
parent e90ffabf8b
commit 7d1c7a6c75
2 changed files with 4 additions and 2 deletions

View File

@ -55,6 +55,8 @@ jobs:
~/.cargo/git ~/.cargo/git
backend/target backend/target
key: ${{ runner.os }}-cargo-test-${{ hashFiles('backend/Cargo.lock') }} key: ${{ runner.os }}-cargo-test-${{ hashFiles('backend/Cargo.lock') }}
- name: Install Nextest
run: cargo install cargo-nextest
- name: Build Binary with Shutdown - name: Build Binary with Shutdown
run: cargo build --features shutdown --bin nuchat run: cargo build --features shutdown --bin nuchat
- name: Run Tests - name: Run Tests

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! $(command -v cargo-nextest 2>&1 > /dev/null ) ]; then if ! command -v cargo-nextest > /dev/null 2>&1; then
echo "Command not found cargo-nextest" echo "Command not found cargo-nextest"
echo "Try installing with cargo install cargo-nextest" echo "Try installing with cargo install cargo-nextest"
exit 1 exit 1
@ -17,4 +17,4 @@ curl -s -X POST localhost:7001/admin/shutdown 2>&1 > /dev/null
cargo run --features shutdown -- --port 7001 2>&1 > logs/nuchat.log & cargo run --features shutdown -- --port 7001 2>&1 > logs/nuchat.log &
# run tests # run tests
cargo nextest run 2>&1 | tee logs/test-output.log cargo nextest run --color=always 2>&1 | tee logs/test-output.log