test
parent
a83c279ce5
commit
9ff16e39cd
@ -1,37 +1,33 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
orbs:
|
orbs:
|
||||||
cypress: cypress-io/cypress@3.1.3
|
cypress: cypress-io/cypress@3.1.2
|
||||||
node: circleci/node@5.0.2
|
|
||||||
jobs:
|
|
||||||
install-browser: # this can be any name you choose
|
|
||||||
executor: node/default
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
command: npx @puppeteer/browsers install chrome@stable
|
|
||||||
- run:
|
|
||||||
command: |
|
|
||||||
ls && pwd
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: ~/project
|
|
||||||
paths:
|
|
||||||
- .
|
|
||||||
test: # this can be any name you choose
|
|
||||||
executor: node/default
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
command: |
|
|
||||||
ls && pwd
|
|
||||||
workflows:
|
workflows:
|
||||||
run-cy-tests:
|
build:
|
||||||
- attach_workspace:
|
|
||||||
at: ~/project
|
|
||||||
jobs:
|
jobs:
|
||||||
- install-browser
|
- cypress/install:
|
||||||
- test:
|
build: 'npm install'
|
||||||
|
- cypress/run:
|
||||||
requires:
|
requires:
|
||||||
- install-browser
|
- 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:
|
- cypress/run:
|
||||||
requires:
|
requires:
|
||||||
- install-browser
|
- cypress/install
|
||||||
cypress-command: 'npm run cy:ci'
|
record: true # record results on Cypress Dashboard
|
||||||
parallelism: 2
|
parallel: true # split all specs across machines
|
||||||
|
parallelism: 2 # use 2 CircleCI machines to finish quickly
|
||||||
|
group: 'all tests'
|
||||||
|
Loading…
Reference in New Issue