diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 323d075..560ecb8 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -9,8 +9,7 @@ on: jobs: verify: runs-on: ubuntu-latest - environment: Tests - + steps: - name: Checkout repository uses: actions/checkout@v2 @@ -26,7 +25,11 @@ jobs: run: cd backend && npm install - name: Reset the database (for e2e tests) + env: + DATABASE_URL: file:./database.dev.sqlite run: cd backend && npm run db:reset - + - name: Run verify - run: cd backend && npm run verify + env: + DATABASE_URL: 'file:./database.dev.sqlite' + run: cd backend && npm run verify diff --git a/backend/src/auth/auth.service.ts b/backend/src/auth/auth.service.ts index c72cbed..ffaa66e 100644 --- a/backend/src/auth/auth.service.ts +++ b/backend/src/auth/auth.service.ts @@ -1,6 +1,6 @@ import { Injectable } from '@nestjs/common'; import { User } from '@prisma/client'; -import { compare } from 'bcrypt'; +import * as bcrypt from 'bcrypt'; import { UserRepository } from '../db/repositories/user.repository'; @Injectable()