Skip to content

Commit

Permalink
馃И ci: Add .env.test for backend-review.yml (#2501)
Browse files Browse the repository at this point in the history
* 馃И ci: Add `.env.test` for `backend-review.yml`

* chore: touch example file
  • Loading branch information
danny-avila committed Apr 24, 2024
1 parent ea1109b commit 0adafd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/backend-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -60,4 +63,4 @@ jobs:
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint: true
2 changes: 1 addition & 1 deletion api/test/.env.test.example
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0adafd1

Please sign in to comment.