Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/pull_request_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,30 @@ jobs:
SCHEMAVAULTS_GITHUB_PACKAGE_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: bun run build

Storybook-Tests:
name: Storybook Tests
needs:
- Lint
- Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Configure bun to install from GitHub Packages
run: rm -rf .npmrc
- name: Install dependencies
run: bun install
env:
SCHEMAVAULTS_GITHUB_PACKAGE_REGISTRY_USER: ${{ github.actor }}
SCHEMAVAULTS_GITHUB_PACKAGE_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Playwright Chromium (with system deps)
run: bunx playwright install --with-deps chromium
- name: Build Storybook
run: bun run build:storybook
- name: Run Storybook tests (interaction + smoke)
run: bun run test-storybook:ci
13 changes: 13 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,21 @@ bun run typecheck:storybook

# Lint source files
bun run lint

# Run Storybook interaction + smoke tests against a running dev server on :6006
# (start `bun run storybook` first, then in another shell:)
bun run test-storybook

# CI-style: build Storybook, serve the static output, then run the test runner.
# Requires the Playwright Chromium browser: `bunx playwright install chromium`
bun run build:storybook && bun run test-storybook:ci
```

> **Storybook tests** are powered by `@storybook/test-runner` (Playwright). They
> run every story's `play()` interaction tests plus a render smoke test for all
> other stories. CI runs them via the `Storybook Tests` job in
> `.github/workflows/pull_request_checks.yml`.

## Architecture

### Package Structure
Expand Down
Loading