ci: add Storybook build + visual regression step

This commit is contained in:
2026-05-13 08:27:04 +02:00
parent f761dbb9b1
commit f16c7b1b60

View File

@@ -61,7 +61,7 @@ jobs:
if: always() if: always()
with: with:
name: coverage name: coverage
path: '**/coverage/lcov.info' path: "**/coverage/lcov.info"
retention-days: 7 retention-days: 7
e2e: e2e:
@@ -100,7 +100,7 @@ jobs:
run: pnpm test:e2e run: pnpm test:e2e
storybook: storybook:
name: Storybook smoke tests name: Storybook smoke tests + visual regression
needs: validate needs: validate
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -114,5 +114,10 @@ jobs:
cache: pnpm cache: pnpm
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm exec playwright install --with-deps chromium - run: pnpm exec playwright install --with-deps chromium
- run: pnpm build-storybook --filter @repo/storybook - name: Build Storybook
run: pnpm --filter @repo/storybook build:storybook
- run: pnpm test:stories - run: pnpm test:stories
- name: Install Playwright browsers
run: pnpm exec playwright install chromium --with-deps
- name: Visual regression
run: pnpm test:visual