@@ -11,37 +11,37 @@ services:
1111 - MOCK_SERVER_HOST=mock_server
1212 command : ['/codecept/node_modules/.bin/mocha', 'test/rest']
1313 depends_on :
14- json_server :
15- condition : service_healthy
16- mock_server :
17- condition : service_started
14+ - json_server
15+ - mock_server
1816
1917 test-acceptance.webdriverio :
2018 build : ..
2119 env_file : .env
22- working_dir : /tests
2320 environment :
24- - CODECEPT_ARGS=-c acceptance/codecept.WebDriver.js --grep @WebDriverIO --debug
25- - NODE_PATH=/codecept/lib
21+ - CODECEPT_ARGS=-c codecept.WebDriver.js --grep @WebDriverIO --debug
2622 depends_on :
2723 - php
2824 - selenium.chrome
2925 volumes :
30- - .:/tests
26+ - ./acceptance:/tests
27+ - ./data:/data
28+ - ./support:/support
29+ - node_modules:/node_modules
3130
3231 test-acceptance.puppeteer :
3332 build : ..
3433 env_file : .env
35- working_dir : /tests
3634 environment :
37- - CODECEPT_ARGS=-c acceptance/ codecept.Puppeteer.js --grep @Puppeteer
35+ - CODECEPT_ARGS=-c codecept.Puppeteer.js --grep @Puppeteer
3836 - PPT_VERSION=$PPT_VERSION
39- - NODE_PATH=/codecept/lib
4037 depends_on :
4138 - php
4239 - puppeteer-image
4340 volumes :
44- - .:/tests
41+ - ./acceptance:/tests
42+ - ./data:/data
43+ - ./support:/support
44+ - node_modules:/node_modules
4545
4646 test-bdd.faker :
4747 build : ..
@@ -52,6 +52,7 @@ services:
5252 - ./bdd:/tests
5353 - ./data:/data
5454 - ./support:/support
55+ - node_modules:/node_modules
5556
5657 selenium.chrome :
5758 image : selenium/standalone-chrome:4.26
@@ -74,12 +75,6 @@ services:
7475 ports :
7576 - ' 8010:8010' # Expose to host
7677 restart : always # Automatically restart the container if it fails or becomes unhealthy
77- healthcheck :
78- test : ["CMD", "node", "-e", "require('http').get('http://localhost:8010/posts', (res) => process.exit(res.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
79- interval : 2s
80- timeout : 3s
81- retries : 10
82- start_period : 5s
8378
8479 mock_server :
8580 << : *test-service
@@ -93,3 +88,6 @@ services:
9388
9489 puppeteer-image :
9590 image : ghcr.io/puppeteer/puppeteer:22.4.1
91+
92+ volumes :
93+ node_modules:
0 commit comments