start layout #6834
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Visual Regression Tests | |
#Rationale for not including it in default CI workflow, Chromatic requires 'on push' vs 'on pull request' | |
on: | |
push: | |
paths: | |
- 'packages/libs/kode-ui/**' | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
jobs: | |
visual-regression-tests: | |
name: '@kadena/kode-ui' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
show-progress: false | |
- name: Runner setup | |
uses: ./.github/actions/runner-setup | |
- name: Build | |
run: pnpm run build --filter @kadena/kode-ui... | |
- name: Publish Storybook | |
uses: chromaui/action@latest | |
with: | |
exitOnceUploaded: true | |
buildScriptName: 'build:storybook' | |
projectToken: ${{ secrets.REACT_UI_CHROMATIC_TOKEN }} | |
workingDir: packages/libs/kode-ui | |
autoAcceptChanges: 'main' | |
onlyChanged: true # Required option to enable TurboSnap |