File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Visual tests"
2+
3+ on :
4+ workflow_dispatch : ~
5+
6+ jobs :
7+ chromatic :
8+ name : Run Chromatic
9+ runs-on : ' ubuntu-24.04'
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : ' 20'
18+ - name : Install dependencies
19+ run : yarn
20+ - name : Run Chromatic
21+ uses : chromaui/action@latest
22+ with :
23+ projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ const config = {
3737 } ,
3838 } ,
3939 path . resolve ( __dirname , '../src/storybook/addons/framework-selector/index.ts' ) ,
40+ '@chromatic-com/storybook' ,
4041 ] ,
4142 framework : {
4243 name : '@storybook/react-webpack5' ,
Original file line number Diff line number Diff line change 2525 "@babel/preset-env" : " ^7.27.2" ,
2626 "@babel/preset-react" : " ^7.27.1" ,
2727 "@babel/preset-typescript" : " ^7.27.1" ,
28+ "@chromatic-com/storybook" : " ^4.1.1" ,
2829 "@ibexa/eslint-config" : " https://github.com/ibexa/eslint-config-ibexa#~v2.0.0" ,
2930 "@ibexa/ts-config" : " https://github.com/ibexa/ts-config-ibexa#~v1.1.0" ,
3031 "@storybook/addon-a11y" : " ^9.0.4" ,
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ const meta: Meta<typeof IconsList> = {
4848 component : IconsList ,
4949 parameters : {
5050 layout : 'padded' ,
51+ // Disables Chromatic's snapshotting on a component level
52+ chromatic : { disableSnapshot : true } ,
5153 } ,
5254 tags : [ ] ,
5355} ;
You can’t perform that action at this time.
0 commit comments