mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
ci: fix storybook ci (#11463)
* ci: fix storybook ci * add missing e2e file * fix
This commit is contained in:
6
build-and-start-e2e-tests.sh
Executable file
6
build-and-start-e2e-tests.sh
Executable 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"
|
||||
@@ -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
10
ui/test-storybook.sh
Executable 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"
|
||||
Reference in New Issue
Block a user