Upgrade to latest storybook #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: corepack enable | |
- 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 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- run: corepack enable | |
- 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 |