Skip to content

ci(jest): split jest tests to run in multiple shards #20061

ci(jest): split jest tests to run in multiple shards

ci(jest): split jest tests to run in multiple shards #20061

Workflow file for this run

# Chromatic action from https://www.chromatic.com/docs/github-actions
name: "chromatic"
on:
pull_request:
types:
- ready_for_review
- synchronize
branches-ignore:
- changeset-release/main
push:
branches:
- "main"
jobs:
visual-testing:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Build Storybook
run: |
yarn storybook:build --webpack-stats-json
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ github.token }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: "./storybook/public"
onlyChanged: "!(main)"
externals: |
[
"**/!(*.module).scss",
"packages/button/src/Button/*.scss",
"packages/component-library/components/Spacing/Base.module.scss"
]
autoAcceptChanges: main # 👈 Auto accept main builds (why https://www.chromatic.com/docs/github-actions#github-squashrebase-merge-and-the-main-branch)