|
|
@@ -25,31 +25,52 @@ install:
|
|
|
- yarn install --dev
|
|
|
- npx cypress cache path
|
|
|
- npx cypress cache list
|
|
|
+ - yarn ci & npx wait-on http://localhost:3004
|
|
|
|
|
|
chrome:
|
|
|
image: cypress/browsers:node14.17.0-chrome88-ff89
|
|
|
stage: test
|
|
|
script:
|
|
|
- - yarn ci & npx wait-on http://localhost:3004
|
|
|
- - yarn cypress:run --record --browser chrome --tag "Chrome"
|
|
|
+ - yarn cypress:run --browser chrome
|
|
|
+ artifacts:
|
|
|
+ when: always
|
|
|
+ paths:
|
|
|
+ - cypress/videos/**/*.mp4
|
|
|
+ - cypress/screenshots/**/*.png
|
|
|
+ expire_in: 3 day
|
|
|
|
|
|
chrome-mobile:
|
|
|
image: cypress/browsers:node14.17.0-chrome88-ff89
|
|
|
stage: test
|
|
|
script:
|
|
|
- - yarn ci & npx wait-on http://localhost:3004
|
|
|
- - yarn cypress:run --record --browser chrome --tag "Chrome - Mobile" --config "viewportWidth=375,viewportHeight=667"
|
|
|
+ - yarn cypress:run --browser chrome --config "viewportWidth=375,viewportHeight=667"
|
|
|
+ artifacts:
|
|
|
+ when: always
|
|
|
+ paths:
|
|
|
+ - cypress/videos/**/*.mp4
|
|
|
+ - cypress/screenshots/**/*.png
|
|
|
+ expire_in: 3 day
|
|
|
|
|
|
firefox:
|
|
|
image: cypress/browsers:node14.17.0-chrome88-ff89
|
|
|
stage: test
|
|
|
script:
|
|
|
- - yarn ci & npx wait-on http://localhost:3004
|
|
|
- - yarn cypress:run --record --browser firefox --tag "Firefox"
|
|
|
+ - yarn cypress:run --browser firefox
|
|
|
+ artifacts:
|
|
|
+ when: always
|
|
|
+ paths:
|
|
|
+ - cypress/videos/**/*.mp4
|
|
|
+ - cypress/screenshots/**/*.png
|
|
|
+ expire_in: 3 day
|
|
|
|
|
|
firefox-mobile:
|
|
|
image: cypress/browsers:node14.17.0-chrome88-ff89
|
|
|
stage: test
|
|
|
script:
|
|
|
- - yarn ci & npx wait-on http://localhost:3004
|
|
|
- - yarn cypress:run --record --browser firefox --tag "Firefox - Mobile" --config "viewportWidth=375,viewportHeight=667"
|
|
|
+ - yarn cypress:run --browser firefox --config "viewportWidth=375,viewportHeight=667"
|
|
|
+ artifacts:
|
|
|
+ when: always
|
|
|
+ paths:
|
|
|
+ - cypress/videos/**/*.mp4
|
|
|
+ - cypress/screenshots/**/*.png
|
|
|
+ expire_in: 3 day
|