Add policyengine.org/tutorial (proxy to tutorial site) #845
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: | |
| - main | |
| jobs: | |
| chromatic: | |
| name: Visual regression tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Required for TurboSnap to diff changes | |
| ref: ${{ github.event.pull_request.head.ref || github.ref }} | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run Chromatic | |
| working-directory: ./app | |
| run: >- | |
| bunx chromatic | |
| --only-changed | |
| --build-script-name="storybook:build" | |
| --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| ${{ github.event_name == 'push' && '--auto-accept-changes' || '' }} | |
| ${{ github.event_name == 'pull_request' && format('--patch-build={0}...main', github.head_ref) || '' }} | |
| env: | |
| VITE_APP_MODE: website |