Skip to content

🤖 fix: stabilize Stats tab streaming updates #9103

🤖 fix: stabilize Stats tab streaming updates

🤖 fix: stabilize Stats tab streaming updates #9103

Workflow file for this run

name: Chromatic
on:
push:
branches:
- main
pull_request:
branches: ["**"]
jobs:
chromatic:
name: Visual Regression Testing
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
# Skip for forked PRs since they don't have access to secrets
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0 # Required for Chromatic to track changes
persist-credentials: false
- uses: ./.github/actions/setup-mux
- name: Generate version file
run: ./scripts/generate-version.sh
- name: Mock version for stable visual testing
run: cp src/browser/stories/mocks/version.ts src/version.ts
- name: Build Storybook
run: bun x storybook build --stats-json
- name: Run Chromatic
uses: chromaui/action@07791f8243f4cb2698bf4d00426baf4b2d1cb7e0 # v13.3.5
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
onlyChanged: true