diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 91bcd69..446cdff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ on: [push, pull_request] env: DATABASE_PRISMA_URL: postgres://postgres:postgres@localhost:5432/test DATABASE_URL: postgres://postgres:postgres@localhost:5432/test + PUBLIC_URL: http://localhost:5173 jobs: build: runs-on: ubuntu-latest @@ -42,6 +43,9 @@ jobs: - name: Build in node mode run: yarn nodebuild + - name: Install playwright + run: npx playwright install + - name: Install Playwright dependencies (just chromium for now) run: npx playwright install-deps chromium diff --git a/package.json b/package.json index e94d958..38d5d3e 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ "test:unit": "vitest", "lint": "prettier --plugin-search-dir . --check . && eslint .", "format": "prettier --plugin-search-dir . --write .", - "reset": "prisma migrate reset && yarn dev", - "postinstall": "prisma generate", + "reset": "prisma migrate reset && yarn dev", + "postinstall": "prisma migrate dev", "build:prev": "vite build && vite preview", "seed": "prisma db seed" },