version: 2 workflows: version: 2 jobs: cypress-ci: parallelism: 1 docker: - image: "cypress/included:10.0.0" working_directory: ~/app steps: - checkout - restore_cache: keys: - node-deps-v1-{{ .Branch }}-{{ checksum "cypress-tests/yarn.lock" }} - run: name: Install Packages command: | cd cypress-tests npm install --legacy-peer-deps - save_cache: key: node-deps-v1-{{ .Branch }}-{{ checksum "cypress-tests/yarn.lock" }} paths: - ~/cypress-tests/.npm - run: name: Execute cypress command: | cd cypress-tests npm run cy:run --ENVIRONMENT="review" --START_URL=${START_URL} --RECORD_KEY=${RECORD_KEY} - store_artifacts: path: cypress-tests/coverage/lcov-report cypress-ci-happy-path: parallelism: 1 docker: - image: "cypress/included:10.0.0" working_directory: ~/app steps: - checkout - restore_cache: keys: - node-deps-v1-{{ .Branch }}-{{ checksum "cypress-tests/yarn.lock" }} - run: name: Install Packages command: | cd cypress-tests npm install --legacy-peer-deps - save_cache: key: node-deps-v1-{{ .Branch }}-{{ checksum "cypress-tests/yarn.lock" }} paths: - ~/cypress-tests/.npm - run: name: Execute cypress command: | cd cypress-tests npm run cy:run:happypath --ENVIRONMENT="review" --START_URL=${START_URL} --RECORD_KEY=${RECORD_KEY} - store_artifacts: path: cypress-tests/coverage/lcov-report cypress-ci-nightly-test: parallelism: 1 docker: - image: "cypress/included:10.0.0" working_directory: ~/app steps: - checkout - restore_cache: keys: - node-deps-v1-{{ .Branch }}-{{ checksum "cypress-tests/yarn.lock" }} - run: name: Install Packages command: | cd cypress-tests npm install --legacy-peer-deps - save_cache: key: node-deps-v1-{{ .Branch }}-{{ checksum "cypress-tests/yarn.lock" }} paths: - ~/cypress-tests/.npm - run: name: Execute cypress command: | cd cypress-tests npm run cy:run:nightly --STAGING_URL=${STAGING_URL} --ENVIRONMENT="staging" --RECORD_KEY=${RECORD_KEY} - store_artifacts: path: cypress-tests/coverage/lcov-report