File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -48,19 +48,18 @@ jobs:
4848 - name : Install dependencies
4949 run : bun install
5050
51+ - name : Create Drizzle database
52+ run : |
53+ docker run --rm --network host -e PGPASSWORD=keypal_dev postgres:17-alpine psql -h localhost -U keypal -d postgres -c "CREATE DATABASE keypal_drizzle;" || true
54+
5155 - name : Run tests
52- run : bun run test
56+ run : bun run test --exclude=test:prisma
5357
5458 - name : Run Redis tests
5559 run : bun run test:redis
5660 env :
5761 REDIS_URL : redis://localhost:6379
5862
59- - name : Run Drizzle tests
60- run : bun run test:drizzle
61- env :
62- DATABASE_URL : postgresql://keypal:keypal_dev@localhost:5432/keypal
63-
6463 - name : Push Prisma schema
6564 run : bunx prisma db push
6665 env :
7170 env :
7271 DATABASE_URL : postgresql://keypal:keypal_dev@localhost:5432/keypal
7372
73+ - name : Run Drizzle tests
74+ run : bun run test:drizzle
75+ env :
76+ DATABASE_URL : postgresql://keypal:keypal_dev@localhost:5432/keypal_drizzle
77+
7478 build :
7579 name : Build
7680 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ export class PrismaStore implements Storage {
9898 }
9999
100100 async findByOwner ( ownerId : string ) : Promise < ApiKeyRecord [ ] > {
101- // Fetch all rows and filter client-side since Prisma's JSON queries don't work well with SQLite
102101 const allRows = await this . model . findMany ( ) ;
103102 const filtered = allRows . filter (
104103 ( row : { id : string ; keyHash : string ; metadata : unknown } ) => {
You can’t perform that action at this time.
0 commit comments