diff --git a/.circleci/config.yml b/.circleci/config.yml index bc4ac2a..282a5a7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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'