🤖 feat: implement soft-interrupts with block boundary detection #1431
This file contains hidden or 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: 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@v4 | |
| with: | |
| fetch-depth: 0 # Required for Chromatic to track changes | |
| - uses: ./.github/actions/setup-mux | |
| - name: Generate version file | |
| run: ./scripts/generate-version.sh | |
| - name: Mock version for stable visual testing | |
| run: cp .storybook/mocks/version.ts src/version.ts | |
| - name: Build Storybook | |
| run: bun x storybook build --stats-json | |
| - name: Run Chromatic | |
| uses: chromaui/action@latest | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| exitZeroOnChanges: true | |
| onlyChanged: true |