ci: add Storybook build + visual regression step
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user