Skip to content

Commit 2fb1530

Browse files
committed
Fix storybook CI hang
1 parent 35695c4 commit 2fb1530

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
.env
77
.env.*
88
!.env.example
9+
storybook-static
910

1011
# Ignore files for PNPM, NPM and YARN
1112
pnpm-lock.yaml

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ jobs:
7676
- name: Install Playwright
7777
run: npx playwright install
7878

79+
- name: Build storybook
80+
run: npm run build-storybook
81+
7982
- name: Test
8083
run: npm run test-storybook:ci
8184

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test-vite:watch": "vitest --watch",
1818
"test-storybook": "test-storybook --browsers firefox",
1919
"test-storybook:coverage": "npm run test-storybook -- --coverage",
20-
"test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run build-storybook --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && npm run test-storybook:coverage\"",
20+
"test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npx http-server storybook-static --port 6006 --silent\" \"npx wait-on tcp:127.0.0.1:6006 && npm run test-storybook:coverage\"",
2121
"lint": "prettier --check . && eslint .",
2222
"format": "prettier --write .",
2323
"storybook": "storybook dev -p 6006",

src/lib/layout/BackgroundHexagon.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
{#if position === 'right'}
66
<img
77
alt="NIAEFEUP hexagon logo"
8-
class="fixed -right-24 -z-10 h-full overflow-hidden pt-20 pb-40 sm:right-0 sm:pb-32"
8+
class="fixed -right-24 -z-10 h-full overflow-hidden pb-40 pt-20 sm:right-0 sm:pb-32"
99
src="/images/outline_white.png"
1010
/>
1111
{:else}
1212
<img
1313
alt="NIAEFEUP hexagon logo"
14-
class="pointer-events-none fixed -left-24 -z-10 h-full overflow-hidden pt-20 pb-40"
14+
class="pointer-events-none fixed -left-24 -z-10 h-full overflow-hidden pb-40 pt-20"
1515
src="/images/outline_white_180.png"
1616
/>
1717
{/if}

0 commit comments

Comments
 (0)