tests: fix nginx testing setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a8a34dbd70
commit
2d7b814700
@ -40,7 +40,7 @@ steps:
|
|||||||
- yarn --cwd ./items/frontend install
|
- yarn --cwd ./items/frontend install
|
||||||
- yarn --cwd ./items/frontend build --pure-lockfile
|
- yarn --cwd ./items/frontend build --pure-lockfile
|
||||||
- rm -rf ./items/api/public/static/*
|
- rm -rf ./items/api/public/static/*
|
||||||
- cp ./items/frontend/build/* ./items/api/public
|
- cp -r ./items/frontend/build/* ./items/api/public
|
||||||
- rm ./items/api/public/index.html
|
- rm ./items/api/public/index.html
|
||||||
depends_on:
|
depends_on:
|
||||||
- replace hosts and user variables
|
- replace hosts and user variables
|
||||||
@ -48,7 +48,9 @@ steps:
|
|||||||
- name: frontend
|
- name: frontend
|
||||||
image: nginx:1.21.4-alpine
|
image: nginx:1.21.4-alpine
|
||||||
commands:
|
commands:
|
||||||
- cp ./items/frontend/build/* /usr/share/nginx/html
|
- cp -r ./items/frontend/build/* /usr/share/nginx/html
|
||||||
|
- cp ./items/frontend/src/cypress/nginx_config/default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
- nginx -g "daemon off;"
|
||||||
detach: true
|
detach: true
|
||||||
depends_on:
|
depends_on:
|
||||||
- install dependencies and build frontend
|
- install dependencies and build frontend
|
||||||
@ -59,7 +61,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
|
||||||
|
|
||||||
|
@ -49,7 +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
|
||||||
- cp ./items/frontend/src/cypress/fixtures/default.conf /etc/nginx/conf.d/default.conf
|
- cp ./items/frontend/src/cypress/nginx_config/default.conf /etc/nginx/conf.d/default.conf
|
||||||
- nginx -g "daemon off;"
|
- nginx -g "daemon off;"
|
||||||
detach: true
|
detach: true
|
||||||
depends_on:
|
depends_on:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user