verify
GitHub本地验证工作流,包含运行质量检查(Prettier/ESLint/svelte-check)和执行 Playwright E2E 测试。提供手动 QA 的用户数据种子生成及 PocketBase 数据库重置功能,确保提交前代码质量与功能正常。
Trigger Scenarios
Install
npx skills add fmaclen/canutin --skill verify -g -y
SKILL.md
Frontmatter
{
"name": "verify",
"description": "Local verification workflow - quality checks, running Playwright tests against local PocketBase"
}
Verify
Overview
Before handing work off (see commits-and-prs.md), verify against a local PocketBase and the local SvelteKit app. Canutin has no preview-deployment system; all verification is local.
Local Servers
Manual checks run against bun run dev plus a local PocketBase. Playwright brings up its own preview server as part of bun run test - never start one by hand. Ownership rules, ports, and start commands: see local-servers.
Quality Check
bun run quality
This runs Prettier, ESLint, and svelte-check. Resolve all errors before committing. On a fresh worktree, run bunx @inlang/paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide once if svelte-check can't find $lib/paraglide/messages — the Vite plugin normally generates this during dev/build.
Running Tests
bun run test --project=desktop -- e2e/your-test.test.ts
bun run test --project=mobile -- e2e/your-test.test.ts
Both projects are required before pushing. See testing.md for conventions.
QA Bootstrap
When the user wants to manually QA a feature in the browser, seed a basic user first:
bun -e "import('./e2e/pocketbase.helpers').then(m => m.seedUser('alice').then(u => console.log(u.email)))"
Use the printed email with DEFAULT_PASSWORD (123qweasdzxc) to log in.
Reset When Needed
bun run pb:reset
Wipes the PocketBase dev database. The superuser (superadmin@example.com / 123qweasdzxc) is re-upserted automatically on the next bun run pb start.
See Also
- testing.md - Playwright conventions
- commits-and-prs.md - PR handoff
- failure-discipline.md - What to do when something fails
Version History
- 28eb754 Current 2026-09-23 01:22


