From f9f346f063f69e5e0d9081b27770008d960b26f1 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Tue, 15 Nov 2022 19:21:19 -0600 Subject: [PATCH] Switch to cypress orb --- .circleci/config.yml | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 39cce1f..dbccb90 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,11 +1,10 @@ version: 2.1 orbs: - node: circleci/node@5.0.2 + cypress: cypress-io/cypress@1 jobs: - test: - executor: node/default + setup: steps: - checkout - run: @@ -15,24 +14,20 @@ jobs: echo "NPM_TOKEN=${NPM_TOKEN}" >> .npmrc echo "@OWNER:registry=https://npm.pkg.github.com/" >> .npmrc echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> .npmrc - cat .npmrc - - node/install: - node-version: '16.13' - - node/install-packages: - pkg-manager: npm - - run: - name: Start web server - command: npm run start - background: true - - run: - name: Run cypress tests - command: | - ## curl --retry-delay 5 --retry 10 --retry-connrefused https://localhost:3000 - sleep 60 - npm run cypress:run workflows: - test: + build: jobs: - - test: + - setup: context: [ qqq-maven-registry-credentials ] + - cypress/install: + build: 'npm run build' # run a custom app build step + - cypress/run: + requires: + - cypress/install + record: true # record results on Cypress Dashboard + ## parallel: true # split all specs across machines + ## parallelism: 4 # use 4 CircleCI machines to finish quickly + ## group: 'all tests' # name this group "all tests" on the dashboard + start: 'npm run start' # start server before running tests +