Skip to content

Commit

Permalink
fix: chromatic as separate ci step
Browse files Browse the repository at this point in the history
  • Loading branch information
benfurber committed Jun 3, 2024
1 parent e296c10 commit e68c32d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,6 @@ jobs:
- firebase_deploy:
# token: $FIREBASE_DEPLOY_TOKEN # This should be set as environment variable
alias: << parameters.DEPLOY_ALIAS >>
# run chromatic
- run:
command: npm run storybook:chromatic

# Run cypress e2e tests on chrome
test_e2e:
Expand Down Expand Up @@ -367,6 +364,15 @@ jobs:
CI_GROUP: ci-<< parameters.CI_BROWSER >>
- store_artifacts:
path: ./packages/cypress/src/screenshots/
chromatic:
docker: *docker
resource_class: medium
steps:
- setup_repo
- attach_workspace:
at: '.'
- run:
command: yarn storybook:chromatic
release:
docker: *docker
resource_class: medium+
Expand Down Expand Up @@ -441,6 +447,13 @@ workflows:
parameters:
CI_NODE: [1, 2, 3, 4]
CI_BROWSER: ['chrome']
- chromatic:
name: 'Release storybook to chromatic'
requires:
- test_e2e
context:
- e2e-tests
<<: *filter_only_default_branch
#---------------------- Development Instances Build and Deploy ----------------------
- deploy:
name: 'Deploy: dev.onearmy.world'
Expand Down

0 comments on commit e68c32d

Please sign in to comment.