add github workflow for chromatic storybook UI testing/reviewing

This commit is contained in:
nikek
2020-05-18 16:43:12 +02:00
parent 9e9d1c7fc8
commit f1dcd53038
2 changed files with 24 additions and 1 deletions
@@ -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
- uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: 'packages/storybook/dist'