add woodpecker pipelines

This commit is contained in:
2026-08-01 21:47:06 -04:00
parent 61ea97265c
commit 0362b3942d
6 changed files with 36 additions and 19 deletions
+4 -5
View File
@@ -69,17 +69,16 @@ The e2e tests live in `e2e/` and use Playwright with a real browser. Each test
starts its own server against a fresh, throwaway database on a unique port, so
tests are fully isolated from each other and from your real `sustenance.db`.
The tests launch `target/debug/sustenance`, so build the server first:
```sh
# one-time setup
cargo build
cd e2e
npm install
npx playwright install chromium
# run the tests (builds the server automatically via globalSetup)
# run the tests (each test launches its own server against a fresh DB)
cd e2e
npx playwright test
```
The Playwright `globalSetup` runs `cargo build` before the suite, and each test
launches its own server against a fresh database, so no manual build or server
start is required.