Skip to content

Commit 698f863

Browse files
committed
Running tests with separate build
1 parent 65f0980 commit 698f863

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ jobs:
475475
- run:
476476
name: Inject Percy Environment variables
477477
command: |
478-
echo 'export PERCY_TOKEN="$PERCY_TOKEN_E2E"' >> $BASH_ENV
478+
echo 'export PERCY_TOKEN="$PERCY_TOKEN"' >> $BASH_ENV
479479
- restore_cache:
480480
key: dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
481481
- attach_workspace:
@@ -550,6 +550,9 @@ jobs:
550550
working_directory: ~/dash/components/dash-table
551551
docker:
552552
- image: circleci/node:14-browsers
553+
environment:
554+
PERCY_TOKEN: $PERCY_TOKEN_TABLE
555+
553556
steps:
554557
- checkout:
555558
path: ~/dash
@@ -567,7 +570,7 @@ jobs:
567570
command: npm run private::build:js
568571
- run:
569572
name: Run visual tests
570-
command: npm run test.visual
573+
command: PERCY_TOKEN=$PERCY_TOKEN_TABLE npm run test.visual
571574
- store_artifacts:
572575
path: storybook-static
573576

0 commit comments

Comments
 (0)