From 2f0f92c095487724a7cea03a2cad38357ff1bf15 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Tue, 10 Dec 2019 23:45:29 -0500 Subject: [PATCH] ci: make sure we're updating the base branch for comparisons (percy) --- .circleci/config.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1d377e2c4..f2eab3378 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -444,6 +444,27 @@ workflows: filters: branches: only: master + # Update base branch snapshots + - cypress/run: + name: 'Generate Percy Snapshots' + executor: cypress/browsers-chrome76 + pre-steps: + - run: 'rm -rf ~/.yarn && npm i -g yarn && yarn -v && yarn global + add wait-on' # Use yarn latest + yarn: true + store_artifacts: false + working_directory: platform/viewer + build: npx cross-env QUICK_BUILD=true yarn run build + # start server --> verify running --> percy + chrome + cypress + command: yarn run test:e2e:dist + cache-key: 'yarn-packages-{{ checksum "yarn.lock" }}' + no-workspace: true # Don't persist workspace + post-steps: + - store_artifacts: + path: platform/viewer/cypress/screenshots + filters: + branches: + only: master - DOCKER_MASTER_PUBLISH: requires: - NPM_PUBLISH