From f16c7b1b6005f1c0cd0febc174eb324ce934bc3e Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Wed, 13 May 2026 08:27:04 +0200 Subject: [PATCH] ci: add Storybook build + visual regression step --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c829863..2ad5a57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: if: always() with: name: coverage - path: '**/coverage/lcov.info' + path: "**/coverage/lcov.info" retention-days: 7 e2e: @@ -100,7 +100,7 @@ jobs: run: pnpm test:e2e storybook: - name: Storybook smoke tests + name: Storybook smoke tests + visual regression needs: validate runs-on: ubuntu-latest steps: @@ -114,5 +114,10 @@ jobs: cache: pnpm - run: pnpm install --frozen-lockfile - 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 + - name: Install Playwright browsers + run: pnpm exec playwright install chromium --with-deps + - name: Visual regression + run: pnpm test:visual