mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: add testing setup in backend
This commit is contained in:
1 parent
cb376caff0
commit
1f77328362
15 files changed
+92
-100
No files matched your search
@@ -1,14 +1,17 @@
|
||||
version: '3'
|
||||
services:
|
||||
cypress:
|
||||
image: cypress/included
|
||||
build:
|
||||
context: .
|
||||
dockerfile: tests/Dockerfile
|
||||
networks:
|
||||
- internal
|
||||
volumes:
|
||||
- ./tests:/e2e
|
||||
working_dir: /e2e
|
||||
- ./tests:/e2e/tests
|
||||
environment:
|
||||
- BASE_URL=http://app-test
|
||||
- TESTING_USERNAME=alex
|
||||
- TESTING_PASSWORD=Alex1234
|
||||
depends_on:
|
||||
- app-test
|
||||
|
||||
@@ -49,6 +52,9 @@ services:
|
||||
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
|
||||
- SURVEY_URL=${SURVEY_URL}
|
||||
- BUG_REPORT_URL=${BUG_REPORT_URL}
|
||||
- TESTING=true
|
||||
- TESTING_USERNAME=alex
|
||||
- TESTING_PASSWORD=Alex1234
|
||||
|
||||
db-test:
|
||||
image: mongo
|
||||
|
||||
Reference in new issue
Block a user