Skip to content

Commit

Permalink
feat(chromatic): init chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin Lee authored and jinlee93 committed Sep 22, 2021
1 parent bb23424 commit 4facc01
Show file tree
Hide file tree
Showing 3 changed files with 1,288 additions and 65 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ jobs:
- name: Run Accessibility Tests 💛
run: yarn workspaces foreach run storybook:axeOnly

- name: Percy Snapshots 📸
run: yarn workspaces foreach run snapshot
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

# - name: Percy Snapshots 📸
# run: yarn workspaces foreach run snapshot
# env:
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"build:types": "tsc --project . --declaration --emitDeclarationOnly",
"build:watch": "yarn run build:js --watch",
"build:storybook": "build-storybook -o storybook-static",
"chromatic": "chromatic --project-token=CHROMATIC_PROJECT_TOKEN",
"deploy:docs": "storybook-to-ghpages --ci",
"prepack": "yarn run build",
"snapshot": "percy-storybook --widths=320,1280",
Expand Down Expand Up @@ -77,6 +78,7 @@
"axe-core": "^4.3.2",
"babel-jest": "^27.0.6",
"babel-loader": "^8.2.2",
"chromatic": "^6.0.0-canary.1",
"codecov": "^3.8.3",
"core-js": "^3.16.1",
"flowgen": "^1.14.1",
Expand Down
Loading

0 comments on commit 4facc01

Please sign in to comment.