feat(storybook): complete Storybook setup with E2E tests and CI #24
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: CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality: | |
| name: Quality Gates | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm -F @vllnt/ui lint | |
| - name: Typecheck | |
| run: pnpm -F @vllnt/ui exec tsc --noEmit --project tsconfig.build.json | |
| - name: Build | |
| run: pnpm build | |
| - name: Test | |
| run: pnpm test:once | |
| - name: Verify stories | |
| working-directory: packages/ui | |
| run: | | |
| npx tsx scripts/check-story-coverage.ts | |
| npx tsx scripts/verify-stories.ts | |
| - name: Build Storybook | |
| working-directory: packages/ui | |
| run: pnpm build-storybook |