Run tests in ci without service worker
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-07-23 12:51:03 +02:00
parent 10bb353d31
commit 85cc418181
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 25 additions and 3 deletions

View File

@ -67,7 +67,7 @@ steps:
depends_on:
- dependencies
- name: build
- name: lint
image: node:16
pull: true
environment:
@ -75,7 +75,29 @@ steps:
CYPRESS_CACHE_FOLDER: .cache/cypress/
commands:
- yarn run lint
- yarn run build
depends_on:
- dependencies
# Building in dev mode to avoid the service worker for testing
- name: build-dev
image: node:16
pull: true
environment:
YARN_CACHE_FOLDER: .cache/yarn/
CYPRESS_CACHE_FOLDER: .cache/cypress/
commands:
- yarn build --mode dev
depends_on:
- dependencies
- name: build-prod
image: node:16
pull: true
environment:
YARN_CACHE_FOLDER: .cache/yarn/
CYPRESS_CACHE_FOLDER: .cache/cypress/
commands:
- yarn build --dest dist-prod
depends_on:
- dependencies
@ -102,7 +124,7 @@ steps:
- yarn test:frontend --browser chrome
depends_on:
- dependencies
- build
- build-dev
- name: upload-test-results
image: plugins/s3:1