master
helenanull 2 years ago
parent 3c51d51c7a
commit cf11c3bf36

@ -1,33 +1,8 @@
version: 2.1 version: 2.1
orbs: orbs:
cypress: cypress-io/cypress@2.1.0 cypress: cypress-io/cypress@3.1.3
workflows: workflows:
build: build:
jobs: jobs:
- cypress/install: - cypress/run # "run" job comes from "Cypress" orb
build: 'npm install' start-command: 'npm run cy:ci'
- cypress/run:
requires:
- cypress/install
record: true # record results on Cypress Dashboard
parallel: true # split all specs across machines
parallelism: 2 # use 2 CircleCI machines to finish quickly
group: 'all tests'
weekly:
triggers:
- schedule:
cron: "0 0 * * 0"
filters:
branches:
only:
- main
jobs:
- cypress/install:
build: 'npm install'
- cypress/run:
requires:
- cypress/install
record: true # record results on Cypress Dashboard
parallel: true # split all specs across machines
parallelism: 2 # use 2 CircleCI machines to finish quickly
group: 'all tests'

@ -7,7 +7,7 @@
"cy:open:web": "cypress open --e2e --browser=chrome --env device=web", "cy:open:web": "cypress open --e2e --browser=chrome --env device=web",
"cy:run:mob": "cypress run --browser=chrome --env device=mob", "cy:run:mob": "cypress run --browser=chrome --env device=mob",
"cy:run:web": "cypress run --env device=web", "cy:run:web": "cypress run --env device=web",
"cy:ci": "cypress run --env device=web --record --parallel --browser ~/project/chrome --headless --group=all_tests" "cy:ci": "cypress run --env device=web --record --parallel --browser chrome --headless"
}, },
"devDependencies": { "devDependencies": {
"cypress": "^13.1.0", "cypress": "^13.1.0",

Loading…
Cancel
Save