|
|
@@ -10,6 +10,10 @@ services:
|
|
|
- ../../libraries:/overleaf/libraries
|
|
|
- ../../bin/shared/wait_for_it:/overleaf/bin/shared/wait_for_it
|
|
|
- ../../tools/migrations:/overleaf/tools/migrations
|
|
|
+ - ../../package.json:/overleaf/package.json
|
|
|
+ - ../../.yarnrc.yml:/overleaf/.yarnrc.yml
|
|
|
+ - ../../yarn.lock:/overleaf/yarn.lock
|
|
|
+ - ../../.yarn:/overleaf/.yarn
|
|
|
working_dir: /overleaf/services/web
|
|
|
env_file: docker-compose.common.env
|
|
|
environment:
|
|
|
@@ -25,8 +29,8 @@ services:
|
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
|
REDIS_HOST: redis_test
|
|
|
MONOREPO:
|
|
|
- entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 --
|
|
|
- command: corepack yarn run --silent test:unit:app
|
|
|
+ entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 -- corepack
|
|
|
+ command: yarn run --silent test:unit:app
|
|
|
user: node
|
|
|
depends_on:
|
|
|
- mongo
|
|
|
@@ -40,6 +44,10 @@ services:
|
|
|
- ../../libraries:/overleaf/libraries
|
|
|
- ../../bin/shared/wait_for_it:/overleaf/bin/shared/wait_for_it
|
|
|
- ../../tools/migrations:/overleaf/tools/migrations
|
|
|
+ - ../../package.json:/overleaf/package.json
|
|
|
+ - ../../.yarnrc.yml:/overleaf/.yarnrc.yml
|
|
|
+ - ../../yarn.lock:/overleaf/yarn.lock
|
|
|
+ - ../../.yarn:/overleaf/.yarn
|
|
|
user: node
|
|
|
working_dir: /overleaf/services/web
|
|
|
env_file: docker-compose.common.env
|
|
|
@@ -66,8 +74,8 @@ services:
|
|
|
- mongo
|
|
|
- saml
|
|
|
- ldap
|
|
|
- entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 --
|
|
|
- command: corepack yarn run --silent test:acceptance:app
|
|
|
+ entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 -- corepack
|
|
|
+ command: yarn run --silent test:acceptance:app
|
|
|
|
|
|
test_frontend_jsdom:
|
|
|
build:
|
|
|
@@ -78,6 +86,10 @@ services:
|
|
|
- .:/overleaf/services/web
|
|
|
- ../../node_modules:/overleaf/node_modules
|
|
|
- ../../libraries:/overleaf/libraries
|
|
|
+ - ../../package.json:/overleaf/package.json
|
|
|
+ - ../../.yarnrc.yml:/overleaf/.yarnrc.yml
|
|
|
+ - ../../yarn.lock:/overleaf/yarn.lock
|
|
|
+ - ../../.yarn:/overleaf/.yarn
|
|
|
working_dir: /overleaf/services/web
|
|
|
environment:
|
|
|
CI:
|
|
|
@@ -85,7 +97,8 @@ services:
|
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
|
VERBOSE_LOGGING:
|
|
|
- command: corepack yarn run --silent test:frontend
|
|
|
+ entrypoint: corepack
|
|
|
+ command: yarn run --silent test:frontend
|
|
|
user: node
|
|
|
|
|
|
test_frontend_ct:
|
|
|
@@ -117,13 +130,18 @@ services:
|
|
|
- .:/overleaf/services/web
|
|
|
- ../../node_modules:/overleaf/node_modules
|
|
|
- ../../libraries:/overleaf/libraries
|
|
|
+ - ../../package.json:/overleaf/package.json
|
|
|
+ - ../../.yarnrc.yml:/overleaf/.yarnrc.yml
|
|
|
+ - ../../yarn.lock:/overleaf/yarn.lock
|
|
|
+ - ../../.yarn:/overleaf/.yarn
|
|
|
working_dir: /overleaf/services/web
|
|
|
environment:
|
|
|
CI:
|
|
|
JUNIT_ROOT_SUITE_NAME:
|
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
|
VERBOSE_LOGGING:
|
|
|
- command: corepack yarn run --silent test:writefull
|
|
|
+ entrypoint: corepack
|
|
|
+ command: yarn run --silent test:writefull
|
|
|
user: node
|
|
|
|
|
|
redis_test:
|