Skip to content

Commit af048a2

Browse files
committed
exclude prisma
1 parent ee4641f commit af048a2

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff 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:
@@ -71,6 +70,11 @@ jobs:
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

src/storage/prisma.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }) => {

0 commit comments

Comments
 (0)