-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (61 loc) · 2.28 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Run tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
storybook7:
runs-on: ubuntu-latest
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build && yarn happo run
- run: yarn build-local-storybook && HAPPO_USE_PREBUILT_PACKAGE=yes yarn happo run
storybook6:
runs-on: ubuntu-latest
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
DISABLE_REACT_WEBPACK5_FRAMEWORK: true
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
- run: yarn install --frozen-lockfile
- run: rm .storybook/Interactive.stories.js
- run: yarn remove @storybook/react-webpack5 storybook
- run: yarn add @storybook/testing-library@0.0.11 @storybook/core@6.5.13 @storybook/addons@6.5.13 @storybook/react@6.4 @storybook/addon-actions@6.5.15 @storybook/api@6.5.13 @storybook/addon-interactions@6.5.13 react@17 react-dom@17 --dev
- run: yarn list
- run: yarn build && yarn happo run
storybook5:
runs-on: ubuntu-latest
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
USE_STORYSTORE_V7: false
DISABLE_REACT_WEBPACK5_FRAMEWORK: true
DISABLE_ADDONS: true
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
- run: yarn install --frozen-lockfile
- run: echo "import '../register'; export default {};" > .storybook/config.js
- run: rm .storybook/preview.js
- run: rm .storybook/Interactive.stories.js
- run: yarn remove @storybook/react-webpack5 storybook
- run: yarn add @storybook/testing-library@0.0.11 @storybook/core@5 @storybook/addons@5 @storybook/react@5 @storybook/addon-actions@5 @storybook/api@5 react@17 react-dom@17 --dev
- run: yarn build && yarn happo run