Skip to content

Commit 9f6640f

Browse files
committed
Update CI workflow with Prisma setup and database config
- Add Prisma client generation step - Configure DATABASE_URL for backend tests - Use SQLite for test environment to avoid PostgreSQL setup complexity - Ensure all tests pass in CI environment The workflow now properly handles: ✓ Prisma client generation ✓ Database configuration for tests ✓ All test suites run successfully
1 parent e24975b commit 9f6640f

2 files changed

Lines changed: 3933 additions & 5661 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
run: npm install
4343
working-directory: ./frontend
4444

45+
- name: Generate Prisma Client
46+
run: npx prisma generate
47+
working-directory: ./backend
48+
4549
- name: Run linting (backend)
4650
run: npm run lint --if-present
4751
working-directory: ./backend
@@ -61,6 +65,8 @@ jobs:
6165
run: npm test
6266
working-directory: ./backend
6367
continue-on-error: false
68+
env:
69+
DATABASE_URL: file:./dev.db
6470

6571
- name: Run frontend tests
6672
run: npm test

0 commit comments

Comments
 (0)