ci: fix storybook ci (#11463)

* ci: fix storybook ci

* add missing e2e file

* fix
This commit is contained in:
Roman Acevedo
2025-09-23 13:46:33 +02:00
committed by GitHub
parent 02b0c3b69f
commit a244de3a21
3 changed files with 17 additions and 1 deletions

6
build-and-start-e2e-tests.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env sh
set -e
set -x
echo "Skipping because No E2E tests are available on this release branch"

View File

@@ -15,7 +15,7 @@
"lint": "eslint --fix",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test:storybook": "test-storybook",
"test:storybook": "./test-storybook.sh",
"prepare": "cd .. && husky ui/.husky && rm -f .git/hooks/*",
"notes": "node ./scripts/ci/generateReleaseNotes"
},

10
ui/test-storybook.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env sh
set -e
set -x
npm run build-storybook --quiet
npx 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 && npx test-storybook"