Skip to content

Commit

Permalink
fix: workflow, prisma should be installed before migrating, or
Browse files Browse the repository at this point in the history
generating types
  • Loading branch information
brueningf committed Jan 28, 2025
1 parent 89d8595 commit 218387d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,13 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Setup Prisma
working-directory: ./backend
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test_db
run: |
npx prisma generate
npx prisma migrate dev --name init --schema=./prisma/schema.prisma
- name: CI
working-directory: ./backend
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test_db
run: |
npm install
npx prisma generate
npx prisma migrate dev --name init --schema=./prisma/schema.prisma
npm run build --if-present
npx jest

0 comments on commit 218387d

Please sign in to comment.