mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-31 02:04:40 +08:00
fix(ci): remove drizzle-kit push and add BETTER_AUTH_SECRET for E2E
Sinceb73d7a0added auto-migrate on Node platform boot, the explicit drizzle-kit push step conflicts — push creates tables without recording a migration journal, so the subsequent migrate() call fails with "table already exists". Also add BETTER_AUTH_SECRET env var required sinceff1ad78added fail-fast on missing secret. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,8 @@ jobs:
|
||||
name: E2E Tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: check
|
||||
env:
|
||||
BETTER_AUTH_SECRET: ci-test-secret-that-is-at-least-32-chars
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -34,7 +36,6 @@ jobs:
|
||||
node-version: 24
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npx drizzle-kit push
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- run: npm run e2e
|
||||
- uses: actions/upload-artifact@v4
|
||||
|
||||
Reference in New Issue
Block a user