Skip to content

Commit

Permalink
ci: Activate Chromatic TurboSnap
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzWeber0 committed Sep 6, 2024
1 parent b9f90b1 commit 7263531
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ jobs:
- name: Install dependencies
run: npm ci
working-directory: ./frontend
- name: Build Storybook
run: ng run capellacollab:build-storybook
working-directory: ./frontend
- name: Run Chromatic
id: chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: ./frontend
storybookBuildDir: ./frontend/storybook-static
- name: Create Storybook comment (initial)
if: github.event_name == 'pull_request'
uses: peter-evans/create-or-update-comment@v4
Expand Down
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Thumbs.db
/playwright/.cache/

*storybook.log
storybook-static
documentation.json

.nx
5 changes: 4 additions & 1 deletion frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ test:
fi

storybook:
ng run capellacollab:storybook --quiet
ng run capellacollab:storybook

build-storybook:
ng run capellacollab:build-storybook

openapi:
python postprocess_openapi_schema.py
Expand Down
3 changes: 3 additions & 0 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"builder": "@storybook/angular:start-storybook",
"options": {
"configDir": ".storybook",
"quiet": true,
"browserTarget": "capellacollab:build:development",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
Expand All @@ -162,6 +163,8 @@
"builder": "@storybook/angular:build-storybook",
"options": {
"configDir": ".storybook",
"webpackStatsJson": true,

"browserTarget": "capellacollab:build:storybook",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
Expand Down

0 comments on commit 7263531

Please sign in to comment.