All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
27 lines
460 B
Makefile
27 lines
460 B
Makefile
run *ARGS: build
|
|
./target/debug/nuchat {{ARGS}}
|
|
|
|
start: build
|
|
./target/debug/nuchat 2>&1 > target/debug/logs/nuchat.log &
|
|
|
|
build: build-cargo build-ui
|
|
|
|
build-cargo:
|
|
@mkdir -p target/debug/logs
|
|
@mkdir -p dist
|
|
cargo build
|
|
|
|
[working-directory: "ui"]
|
|
build-ui:
|
|
npm install
|
|
npm run build
|
|
|
|
test: integration unit
|
|
|
|
integration:
|
|
if [ ! $(curl -sf "localhost:7000/api/healthcheck" ) ]; then just run; fi
|
|
cargo test --test '*'
|
|
|
|
unit:
|
|
cargo test --lib --bins
|