tests: Add workaround for Docker file watchers limitation #27

Merged
Ghost merged 10 commits from tests/workaround_file_watchers into development 2021-11-15 23:06:23 -05:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit e4d8cb7663 - Show all commits

View File

@ -49,6 +49,7 @@ steps:
image: nginx:1.21.4-alpine image: nginx:1.21.4-alpine
commands: commands:
- cp -r ./items/frontend/build/* /usr/share/nginx/html - cp -r ./items/frontend/build/* /usr/share/nginx/html
- nginx -g daemon off;
detach: true detach: true
depends_on: depends_on:
- install dependencies and build frontend - install dependencies and build frontend
@ -59,7 +60,7 @@ steps:
- node -v - node -v
- npm -v - npm -v
- yarn --version - yarn --version
- yarn --cwd ./items/frontend cy:run - yarn --cwd ./items/frontend cy:ci
depends_on: depends_on:
- install dependencies and build frontend - install dependencies and build frontend

View File

@ -43,7 +43,7 @@
"cy:verify": "cypress verify", "cy:verify": "cypress verify",
"cy:run:ci": "cross-env CYPRESS_BASE_URL=http://frontend:3000 cypress run --browser chrome", "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: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" "eject": "react-scripts eject"
}, },
"eslintConfig": { "eslintConfig": {