prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m33s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m33s
This commit is contained in:
@@ -48,30 +48,6 @@ jobs:
|
||||
run: npm ci # 'ci' is faster and safer for CI/CD than 'install'.
|
||||
|
||||
# -----------------------------------------------------------------------
|
||||
# UPDATED STEP: Fixes server startup and test file naming
|
||||
# -----------------------------------------------------------------------
|
||||
- name: Fix Package Scripts and Install TSX
|
||||
run: |
|
||||
# 1. Install tsx to handle running the server (it handles ESM automatically)
|
||||
npm install -D tsx
|
||||
|
||||
# 2. Update the server start script to use tsx
|
||||
npm pkg set scripts.start:server="tsx server.ts"
|
||||
|
||||
# 3. Ensure the integration test command uses the correct config
|
||||
npm pkg set scripts.test:integration="vitest run -c vitest.config.integration.ts"
|
||||
|
||||
# 4. SAFETY NET: Rename test files if they haven't been renamed in Git yet.
|
||||
# This ensures Vitest finds them regardless of your local git state.
|
||||
if [ -f src/services/db.test.ts ]; then
|
||||
echo "Renaming db.test.ts to db.integration.test.ts"
|
||||
mv src/services/db.test.ts src/services/db.integration.test.ts
|
||||
fi
|
||||
if [ -f src/services/shopping-list.test.ts ]; then
|
||||
echo "Renaming shopping-list.test.ts to shopping-list.integration.test.ts"
|
||||
mv src/services/shopping-list.test.ts src/services/shopping-list.integration.test.ts
|
||||
fi
|
||||
# -----------------------------------------------------------------------
|
||||
|
||||
# --- NEW DEBUGGING STEPS ---
|
||||
- name: Verify Project Structure
|
||||
|
||||
@@ -79,7 +79,6 @@
|
||||
"postcss": "^8.5.6",
|
||||
"tailwindcss": "^4.1.17",
|
||||
"testcontainers": "^11.8.1",
|
||||
"ts-node-dev": "^2.0.0",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.47.0",
|
||||
"vite": "^7.2.4",
|
||||
|
||||
Reference in New Issue
Block a user