-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.03 KB
/
chromatic.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
# .github/workflows/chromatic.yml
# name of our action
name: "Chromatic"
# the event that will trigger the action
on: push
# what the action will do
jobs:
test:
# the operating system it will run on
runs-on: ubuntu-latest
# the list of steps that the action will go through
steps:
- uses: actions/checkout@v1
# cache dependencies
- name: Cache node modules
id: cache
uses: actions/cache@v1
with:
path: node_modules
key: yarn-deps-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-deps-${{ hashFiles('yarn.lock') }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- run: npm rebuild node-sass
- run: yarn test
#- run: yarn build-storybook
- uses: chromaui/action@v1
# options required to the GitHub chromatic action
with:
projectToken: ${{ secrets.chroma_token }}
token: ${{ secrets.GITHUB_TOKEN }}
exitOnceUploaded: true