unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m1s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m1s
This commit is contained in:
@@ -109,8 +109,15 @@ jobs:
|
|||||||
DB_USER: ${{ secrets.DB_USER }}
|
DB_USER: ${{ secrets.DB_USER }}
|
||||||
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
|
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
|
||||||
DB_DATABASE: "flyer-crawler-test"
|
DB_DATABASE: "flyer-crawler-test"
|
||||||
DB_NAME: "flyer-crawler-test" # REQUIRED: Used by connection.ts
|
DB_NAME: "flyer-crawler-test"
|
||||||
JWT_SECRET: "test-secret-for-ci" # Use a fixed secret for CI
|
JWT_SECRET: "test-secret-for-ci"
|
||||||
|
# ✅ NEW: Add these dummy values so the server starts
|
||||||
|
GOOGLE_CLIENT_ID: "dummy_client_id"
|
||||||
|
GOOGLE_CLIENT_SECRET: "dummy_client_secret"
|
||||||
|
GITHUB_CLIENT_ID: "dummy_github_id"
|
||||||
|
GITHUB_CLIENT_SECRET: "dummy_github_secret"
|
||||||
|
# ✅ Ensure the server knows where the frontend is (prevents CORS/Redirect errors)
|
||||||
|
FRONTEND_URL: "http://localhost:3000"
|
||||||
run: npm run test:integration
|
run: npm run test:integration
|
||||||
|
|
||||||
- name: Archive Code Coverage Report
|
- name: Archive Code Coverage Report
|
||||||
|
|||||||
Reference in New Issue
Block a user