The Appview for the kipclip.com atproto bookmarking service

Fix CI tests by setting Turso env vars

- Add TURSO_DATABASE_URL/TURSO_AUTH_TOKEN to CI workflow
- Update outdated valTownAdapter comment in db.ts

Changed files
+7 -2
.github
workflows
backend
database
+5
.github/workflows/test.yml
··· 20 20 run: deno lint 21 21 - name: Run tests 22 22 run: deno task test 23 + env: 24 + # Use remote Turso client in CI (avoids local file creation) 25 + # Tests use MemoryStorage, so no actual DB connection needed 26 + TURSO_DATABASE_URL: libsql://test.turso.io 27 + TURSO_AUTH_TOKEN: test-token
+2 -2
backend/database/db.ts
··· 14 14 authToken: Deno.env.get("TURSO_AUTH_TOKEN"), 15 15 }); 16 16 17 - // Wrap the client to match the ExecutableDriver interface expected by valTownAdapter 18 - // The libSQL client returns Row objects, but valTownAdapter expects { rows: unknown[][] } 17 + // Wrap the client to provide a consistent interface 18 + // The libSQL client returns Row objects, we convert to arrays for compatibility 19 19 export const rawDb = { 20 20 execute: async ( 21 21 query: { sql: string; args: unknown[] },