forked from Ivasoft/geovisio-website
Attempt on e2e on gitlab-ci
This commit is contained in:
committed by
Andreani Jean
parent
e580887969
commit
7eb090492b
@@ -1,7 +1,7 @@
|
||||
# Docker-compose used in gitlab-ci to run a container having access to all the other containers
|
||||
services:
|
||||
web:
|
||||
image: node:18.16.0-alpine
|
||||
image: node:18.16.1-alpine
|
||||
volumes:
|
||||
- $PROJECT_DIR:/src
|
||||
working_dir: /src
|
||||
@@ -17,18 +17,25 @@ services:
|
||||
condition: service_healthy
|
||||
auth:
|
||||
condition: service_healthy
|
||||
integration-test-runner:
|
||||
networks:
|
||||
keycloak: {}
|
||||
geovisio: {}
|
||||
web: {}
|
||||
e2e:
|
||||
image: cypress/included:cypress-12.17.3-node-18.16.1-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1
|
||||
volumes:
|
||||
- $PROJECT_DIR:/src
|
||||
working_dir: /src
|
||||
environment:
|
||||
- CYPRESS_baseUrl=http://web
|
||||
command: yarn add --dev cypress && ./node_modules/.bin/cypress install && yarn test:e2e
|
||||
- CYPRESS_baseUrl=http://web:5173
|
||||
command: sleep 2 && yarn add --dev cypress && ./node_modules/.bin/cypress install && yarn test:e2e
|
||||
depends_on:
|
||||
web:
|
||||
condition: service_started
|
||||
networks:
|
||||
db: {}
|
||||
keycloak: {}
|
||||
geovisio: {}
|
||||
web: {}
|
||||
|
||||
networks:
|
||||
web: {}
|
||||
|
||||
Reference in New Issue
Block a user