Merge pull request #906 from spotify/nikek/chromatic
add chromatic storybook testing to backstage
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
name: 'test chromatic'
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/chromatic-storybook-test.yml'
|
||||
- 'packages/storybook/**'
|
||||
- 'packages/core/src/components/**'
|
||||
- 'packages/core/src/layout/**'
|
||||
|
||||
jobs:
|
||||
chromatic:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0 # Required to retrieve git history
|
||||
- run: yarn install && yarn build-storybook
|
||||
- uses: chromaui/action@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
||||
storybookBuildDir: 'packages/storybook/dist'
|
||||
+2
-1
@@ -21,7 +21,8 @@
|
||||
"release": "if [ \"$(git symbolic-ref --short HEAD)\" = master ]; then echo \"don't try to release master\"; exit 1; else lerna version --no-push; fi",
|
||||
"lerna": "lerna",
|
||||
"postinstall": "patch-package",
|
||||
"storybook": "yarn workspace storybook start"
|
||||
"storybook": "yarn workspace storybook start",
|
||||
"build-storybook": "yarn workspace storybook build-storybook"
|
||||
},
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
|
||||
Reference in New Issue
Block a user