From 77ec5accebd18b9197e96676dd97a3b349b348f7 Mon Sep 17 00:00:00 2001 From: Torben Sorensen Date: Sat, 22 Nov 2025 02:42:48 -0800 Subject: [PATCH] unit tests fixin --- .gitea/workflows/deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 25a80a3e..38558352 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -111,13 +111,17 @@ jobs: DB_DATABASE: "flyer-crawler-test" DB_NAME: "flyer-crawler-test" JWT_SECRET: "test-secret-for-ci" - # ✅ NEW: Add these dummy values so the server starts + + # Auth dummies (Previous fix) 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" + FRONTEND_URL: "http://localhost:3000" + + # ✅ NEW: Backend requires this to start + GEMINI_API_KEY: "dummy_gemini_key_for_testing" + # Or if tests need real AI: ${{ secrets.VITE_GOOGLE_GENAI_API_KEY }} run: npm run test:integration - name: Archive Code Coverage Report