add basic backend workflow
Some checks failed
Backend Actions / build (push) Failing after 2m15s

This commit is contained in:
2025-07-21 23:55:46 +01:00
parent 8a7496b46a
commit 820e693b63
3 changed files with 36 additions and 18 deletions

9
backend/scripts/test.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# ensure server is not started
curl -s -X POST localhost:7001/admin/shutdown 2>&1 > /dev/null
# start server
cargo run --features shutdown -- --port 7001 2>&1 > logs/nuchat.log &
# run tests
cargo test | tee logs/test-output.log