File tree Expand file tree Collapse file tree 5 files changed +28
-2
lines changed
packages/components/src/components/AddressInput Expand file tree Collapse file tree 5 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: CI
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
7
7
pull_request :
8
8
branches :
9
- - master
9
+ - main
10
10
11
11
jobs :
12
12
test-lint-build :
29
29
run : yarn test
30
30
- name : Build
31
31
run : yarn build
32
+ chromatic-deployment :
33
+ runs-on : ubuntu-latest
34
+ # Job steps
35
+ steps :
36
+ - uses : actions/checkout@v1
37
+ - name : Install dependencies
38
+ run : yarn
39
+ - name : Publish to Chromatic
40
+ uses : chromaui/action@v1
41
+ with :
42
+ token : ${{ secrets.GITHUB_TOKEN }}
43
+ projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ yarn-error.log
17
17
/coverage
18
18
19
19
dist
20
+ /storybook-static
21
+ build-storybook.log
Original file line number Diff line number Diff line change 22
22
"test:watch" : " yarn test --watch" ,
23
23
"test:coverage" : " jest --coverage --colors" ,
24
24
"storybook" : " start-storybook -p 9001 -s ./packages/components/src/assets -c .storybook" ,
25
+ "build-storybook" : " build-storybook" ,
26
+ "chromatic" : " chromatic --exit-zero-on-changes" ,
25
27
"postinstall" : " preconstruct dev"
26
28
},
27
29
"devDependencies" : {
33
35
"@preconstruct/cli" : " ^2.1.5" ,
34
36
"@testing-library/jest-dom" : " ^5.15.1" ,
35
37
"@testing-library/react" : " ^12.1.2" ,
38
+ "chromatic" : " ^6.1.0" ,
36
39
"jest" : " ^26.6.3" ,
37
40
"msw" : " ^0.35.0" ,
38
41
"ts-jest" : " ^26.4.4"
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ import { Text } from '@chakra-ui/layout';
7
7
export default {
8
8
title : 'Components/AddressInput' ,
9
9
component : AddressInput ,
10
+ parameters : {
11
+ // TODO: Fix window.ethereum is undefined breaking chromatic
12
+ chromatic : { disableSnapshot : true } ,
13
+ } ,
10
14
} ;
11
15
12
16
const WithUseWallet = ( ) => {
Original file line number Diff line number Diff line change @@ -5697,6 +5697,11 @@ chownr@^2.0.0:
5697
5697
resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece"
5698
5698
integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==
5699
5699
5700
+ chromatic@^6.1.0:
5701
+ version "6.1.0"
5702
+ resolved "https://registry.yarnpkg.com/chromatic/-/chromatic-6.1.0.tgz#0228eba1a01f713a3f5109b7e4f4dbaa4e1a5169"
5703
+ integrity sha512-XJT0VIOKYE9RwKTAOcLVpoYqJCU3/+58gOd8Why12sef6WJ7qjeO4c2Vn5ngpM+9A9PwE+y+ULQS25ThSd6WNA==
5704
+
5700
5705
chrome-trace-event@^1.0.2:
5701
5706
version "1.0.3"
5702
5707
resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac"
You can’t perform that action at this time.
0 commit comments