test
parent
a83c279ce5
commit
9ff16e39cd
@ -1,37 +1,33 @@
|
||||
version: 2.1
|
||||
orbs:
|
||||
cypress: cypress-io/cypress@3.1.3
|
||||
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
|
||||
cypress: cypress-io/cypress@3.1.2
|
||||
workflows:
|
||||
run-cy-tests:
|
||||
- attach_workspace:
|
||||
at: ~/project
|
||||
build:
|
||||
jobs:
|
||||
- install-browser
|
||||
- test:
|
||||
- cypress/install:
|
||||
build: 'npm install'
|
||||
- cypress/run:
|
||||
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:
|
||||
requires:
|
||||
- install-browser
|
||||
cypress-command: 'npm run cy:ci'
|
||||
parallelism: 2
|
||||
- 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'
|
||||
|
Loading…
Reference in New Issue