forked from datavisyn/visyn_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initialize chromatic (datavisyn#334)
* initialize chromatic * fix main.js
- Loading branch information
1 parent
63ce6c5
commit 44176b8
Showing
5 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Chromatic UI test | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'src/vis/**/*' # trigger whenever something changed in the VIS (?) | ||
- '**.stories.*' # trigger whenever any story has changed | ||
|
||
jobs: | ||
build: | ||
uses: datavisyn/github-workflows/.github/workflows/build-node-python.yml@main | ||
secrets: inherit | ||
with: | ||
chromatic_enable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
module.exports = require('visyn_scripts/config/storybook.main.template'); | ||
const c = require('visyn_scripts/config/storybook.main.template'); | ||
|
||
const config = { | ||
...c, | ||
addons: [ | ||
// Other Storybook addons | ||
...c.addons, | ||
'@chromatic-com/storybook', | ||
], | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projectId": "Project:640e9afaf15e817c63e10f42", | ||
"zip": true, | ||
"buildScriptName": "storybook:build" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters