Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🧪 ci: Add `.env.test` for `backend-review.yml` (#2501)

Danny Avila0ae98ff011ff
diff --git a/.github/workflows/backend-review.yml b/.github/workflows/backend-review.yml
index 9f8bd7b530..52560009a9 100644
--- a/.github/workflows/backend-review.yml
+++ b/.github/workflows/backend-review.yml
@@ -51,6 +51,9 @@ jobs:
exit 1
fi
+ - name: Prepare .env.test file
+ run: cp api/test/.env.test.example api/test/.env.test
+
- name: Run unit tests
run: cd api && npm run test:ci
@@ -60,4 +63,4 @@ jobs:
- name: Run linters
uses: wearerequired/lint-action@v2
with:
- eslint: true
\ No newline at end of file
+ eslint: true
diff --git a/api/test/.env.test.example b/api/test/.env.test.example
index 16730f672d..9b7a75a996 100644
--- a/api/test/.env.test.example
+++ b/api/test/.env.test.example
@@ -1,4 +1,4 @@
-# Test database. You can use your actual MONGO_URI if you don't mind it potentially including test data.
+# Test DB URI. You can use your actual MONGO_URI if you don't mind it potentially including test data.
MONGO_URI=mongodb://127.0.0.1:27017/chatgpt-jest
# Credential encryption/decryption for testing