test: add Storybook smoke tests for all 57 stories #966
Workflow file for this run
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: "Validate" | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - run: corepack enable | |
| - run: yarn install | |
| - run: yarn run typecheck | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - run: corepack enable | |
| - run: yarn install | |
| - run: yarn run lint | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - run: corepack enable | |
| - run: yarn install | |
| - run: yarn run test | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - run: corepack enable | |
| - run: yarn install | |
| - run: yarn run build | |
| storybook: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - run: corepack enable | |
| - run: yarn install | |
| - name: Install Playwright | |
| run: npx playwright install --with-deps chromium | |
| - name: Build Storybook | |
| run: yarn run storybook:build | |
| - name: Serve Storybook and run tests | |
| run: | | |
| npx http-server storybook-static --port 6006 --silent & | |
| npx wait-on tcp:6006 | |
| yarn run test:storybook |