ci: add eslint and coverage deps; use local OpenNext CLI; update preview smoke to npm run preview
Some checks failed
CI / build-and-test (pull_request) Failing after 37s
Some checks failed
CI / build-and-test (pull_request) Failing after 37s
This commit is contained in:
parent
f692b45926
commit
5910f2c83c
@ -49,8 +49,8 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# Start preview in background and verify it doesn't crash immediately
|
||||
npx @opennextjs/cloudflare@latest preview > preview.log 2>&1 &
|
||||
# Start preview via local CLI in background and verify it doesn't crash immediately
|
||||
npm run preview > preview.log 2>&1 &
|
||||
PREVIEW_PID=$!
|
||||
# Give it a moment to start
|
||||
sleep 5
|
||||
@ -92,4 +92,3 @@ jobs:
|
||||
else
|
||||
echo "No sql/schema.sql found; skipping D1 dry-run."
|
||||
fi
|
||||
|
||||
|
||||
@ -12,8 +12,8 @@
|
||||
"test:ui": "vitest --ui",
|
||||
"test:run": "vitest run",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"pages:build": "npx @opennextjs/cloudflare@latest build",
|
||||
"preview": "npx @opennextjs/cloudflare@latest preview",
|
||||
"pages:build": "opennextjs-cloudflare build",
|
||||
"preview": "opennextjs-cloudflare preview",
|
||||
"deploy": "wrangler pages deploy .vercel/output/static",
|
||||
"db:create": "wrangler d1 create united-tattoo",
|
||||
"db:migrate": "wrangler d1 execute united-tattoo --file=./sql/schema.sql",
|
||||
@ -105,6 +105,9 @@
|
||||
"zod": "3.25.67"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitest/coverage-v8": "^3.2.4",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-next": "14.2.16",
|
||||
"@tailwindcss/postcss": "^4.1.9",
|
||||
"@testing-library/jest-dom": "^6.8.0",
|
||||
"@testing-library/react": "^16.3.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user