File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ' Chromatic deployment – O3'
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' package.json'
9+ - ' package-lock.json'
10+ - ' apps/o3-storybook/**'
11+ - ' !apps/o3-storybook/**/*.md'
12+ - ' components/o3-*/**'
13+ - ' !components/o3-*/*.md'
14+ pull_request :
15+ paths :
16+ - ' package.json'
17+ - ' package-lock.json'
18+ - ' apps/o3-storybook/**'
19+ - ' !apps/o3-storybook/**/*.md'
20+ - ' components/o3-*/**'
21+ - ' !components/o3-*/*.md'
22+
23+ jobs :
24+ interaction-tests :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0
30+ - uses : actions/cache@v4
31+ - uses : actions/setup-node@v4
32+ with :
33+ node-version : 20
34+ - name : Install dependencies
35+ run : npm ci
36+ - name : Build Storybook
37+ run : npm run build-storybook --quiet -w apps/o3-storybook
38+ - name : Serve Storybook and run tests
39+ run : |
40+ cd apps/o3-storybook
41+ npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
42+ "npx http-server storybook-static --port 6006 --silent" \
43+ "npx wait-on tcp:6006 && npm run test-storybook"
You can’t perform that action at this time.
0 commit comments