Skip to content

feat(css,theme,react): use data-color in all components, with color inheritance for some #809

feat(css,theme,react): use data-color in all components, with color inheritance for some

feat(css,theme,react): use data-color in all components, with color inheritance for some #809

Workflow file for this run

name: Visual tests
on:
workflow_dispatch:
pull_request:
branches: [main, next]
types:
# Ensure workflow is run when PR is ready for review
- ready_for_review
# Also enable the default trigger types, for instances when
# the PR is not opened as a draft first
- opened
- reopened
- synchronize
paths:
- .github/workflows/visual-tests.yml
- 'packages/**'
- 'apps/storybook/**'
push:
branches: [main, next]
jobs:
checks:
name: Build & run visual/interaction tests
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v4
with:
# Necessary for Chromatic
fetch-depth: 0
- uses: ./.github/actions/gh-setup
- name: Build
run: yarn build
- name: Build storybook
run: yarn build:storybook
- name: Run Chromatic (visual and interaction tests)
uses: chromaui/action@latest
with:
workingDir: apps/storybook
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
autoAcceptChanges: '{main,next}'