add woodpecker pipelines
ci/woodpecker/push/fmt Pipeline is pending
ci/woodpecker/push/test Pipeline is pending
ci/woodpecker/push/e2e Pipeline was canceled

This commit is contained in:
2026-08-01 21:50:19 -04:00
parent 61ea97265c
commit 0324a97748
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.