| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- # @see https://docs.cypress.io/guides/continuous-integration/gitlab-ci
- # Consult the results on the Cypress dashboard: https://dashboard.cypress.io/
- stages:
- - build
- - test
- ## Set environment variables for folders in "cache" job settings for npm modules and Cypress binary
- variables:
- npm_config_cache: '$CI_PROJECT_DIR/.npm'
- CYPRESS_CACHE_FOLDER: '$CI_PROJECT_DIR/cache/Cypress'
- cache:
- key: ${CI_COMMIT_REF_SLUG}
- paths:
- - .cache/*
- - cache/Cypress
- - node_modules
- - build
- ## Install NPM dependencies and Cypress
- install:
- image: cypress/browsers:node14.17.0-chrome88-ff89
- stage: build
- script:
- - yarn install --dev
- - 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 ci & npx wait-on http://localhost:3004
- - yarn cypress:silent --record --parallel --browser chrome --group "Chrome"
- chrome-mobile:
- image: cypress/browsers:node14.17.0-chrome88-ff89
- stage: test
- parallel: 5
- script:
- - yarn ci & npx wait-on http://localhost:3004
- - yarn cypress:silent --record --parallel --browser chrome --group "Chrome - Mobile" --config "viewportWidth=375,viewportHeight=667"
- firefox:
- image: cypress/browsers:node14.17.0-chrome88-ff89
- stage: test
- parallel: 5
- script:
- - yarn ci & npx wait-on http://localhost:3004
- - yarn cypress:silent --record --parallel --browser firefox --group "Firefox"
- firefox-mobile:
- image: cypress/browsers:node14.17.0-chrome88-ff89
- stage: test
- parallel: 5
- script:
- - yarn ci & npx wait-on http://localhost:3004
- - yarn cypress:silent --record --parallel --browser firefox --group "Firefox - Mobile" --config "viewportWidth=375,viewportHeight=667"
|