mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🧪 ci: Add .env.test for backend-review.yml (#2501)
* 🧪 ci: Add `.env.test` for `backend-review.yml`
* chore: touch example file
This commit is contained in:
parent
4d05e5b79a
commit
0ae98ff011
2 changed files with 5 additions and 2 deletions
5
.github/workflows/backend-review.yml
vendored
5
.github/workflows/backend-review.yml
vendored
|
|
@ -51,6 +51,9 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Prepare .env.test file
|
||||||
|
run: cp api/test/.env.test.example api/test/.env.test
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: cd api && npm run test:ci
|
run: cd api && npm run test:ci
|
||||||
|
|
||||||
|
|
@ -60,4 +63,4 @@ jobs:
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
uses: wearerequired/lint-action@v2
|
uses: wearerequired/lint-action@v2
|
||||||
with:
|
with:
|
||||||
eslint: true
|
eslint: true
|
||||||
|
|
|
||||||
|
|
@ -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
|
MONGO_URI=mongodb://127.0.0.1:27017/chatgpt-jest
|
||||||
|
|
||||||
# Credential encryption/decryption for testing
|
# Credential encryption/decryption for testing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue