Skip to content

Commit

Permalink
ci: chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
fikyair committed Jul 6, 2021
1 parent 35711e3 commit b22c329
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,24 @@ on: push

# List of jobs
jobs:
test:
build:
# Operating System
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
# Job steps
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- uses: actions/checkout@v1
- run: npm rebuild node-sass && yarn
- run: yarn
#👇 Adds Chromatic as a step in the workflow
- uses: chromaui/action@v1
- run: npm rebuild node-sass
# Options required for Chromatic's GitHub Action
with:
#👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/react/en/deploy/ to obtain it
Expand Down

0 comments on commit b22c329

Please sign in to comment.