tests: fix nginx setup
This commit is contained in:
parent
972ddd70cb
commit
e4d8cb7663
@ -49,6 +49,7 @@ steps:
|
||||
image: nginx:1.21.4-alpine
|
||||
commands:
|
||||
- cp -r ./items/frontend/build/* /usr/share/nginx/html
|
||||
- nginx -g daemon off;
|
||||
detach: true
|
||||
depends_on:
|
||||
- install dependencies and build frontend
|
||||
@ -59,7 +60,7 @@ steps:
|
||||
- node -v
|
||||
- npm -v
|
||||
- yarn --version
|
||||
- yarn --cwd ./items/frontend cy:run
|
||||
- yarn --cwd ./items/frontend cy:ci
|
||||
depends_on:
|
||||
- install dependencies and build frontend
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
"cy:verify": "cypress verify",
|
||||
"cy:run:ci": "cross-env CYPRESS_BASE_URL=http://frontend:3000 cypress run --browser chrome",
|
||||
"cy:open": "yarn run cy:start:wait -- \"cypress open\"",
|
||||
"cy:run": "yarn run wait-on http-get://frontend:3000 && yarn run cy:install && yarn run cy:verify && yarn run cy:run:ci",
|
||||
"cy:ci": "yarn run wait-on http-get://frontend && yarn run cy:install && yarn run cy:verify && yarn run cy:run:ci",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user