|
|
@@ -1,6 +1,5 @@
|
|
|
# @see https://docs.cypress.io/guides/continuous-integration/gitlab-ci
|
|
|
# Consult the results on the Cypress dashboard: https://dashboard.cypress.io/
|
|
|
-
|
|
|
stages:
|
|
|
- build
|
|
|
- test
|
|
|
@@ -24,16 +23,16 @@ install:
|
|
|
stage: build
|
|
|
script:
|
|
|
- yarn install --dev
|
|
|
- # check Cypress binary path and cached versions
|
|
|
- npx cypress cache path
|
|
|
- npx cypress cache list
|
|
|
+ - yarn build:ci
|
|
|
|
|
|
chrome:
|
|
|
image: cypress/browsers:node14.17.0-chrome88-ff89
|
|
|
stage: test
|
|
|
parallel: 5
|
|
|
script:
|
|
|
- - yarn dev & npx wait-on http://localhost:3004
|
|
|
+ - yarn ci & npx wait-on http://localhost:3004
|
|
|
- yarn cypress:silent --record --parallel --browser chrome --group "Chrome"
|
|
|
|
|
|
chrome-mobile:
|
|
|
@@ -41,7 +40,7 @@ chrome-mobile:
|
|
|
stage: test
|
|
|
parallel: 5
|
|
|
script:
|
|
|
- - yarn dev & npx wait-on http://localhost:3004
|
|
|
+ - yarn ci & npx wait-on http://localhost:3004
|
|
|
- yarn cypress:silent --record --parallel --browser chrome --group "Chrome - Mobile" --config "viewportWidth=375,viewportHeight=667"
|
|
|
|
|
|
firefox:
|
|
|
@@ -49,7 +48,7 @@ firefox:
|
|
|
stage: test
|
|
|
parallel: 5
|
|
|
script:
|
|
|
- - yarn dev & npx wait-on http://localhost:3004
|
|
|
+ - yarn ci & npx wait-on http://localhost:3004
|
|
|
- yarn cypress:silent --record --parallel --browser firefox --group "Firefox"
|
|
|
|
|
|
firefox-mobile:
|
|
|
@@ -57,5 +56,5 @@ firefox-mobile:
|
|
|
stage: test
|
|
|
parallel: 5
|
|
|
script:
|
|
|
- - yarn dev & npx wait-on http://localhost:3004
|
|
|
+ - yarn ci & npx wait-on http://localhost:3004
|
|
|
- yarn cypress:silent --record --parallel --browser firefox --group "Firefox - Mobile" --config "viewportWidth=375,viewportHeight=667"
|