Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Chromatic'

on:
pull_request:
branches:
- develop

jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Run Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
5 changes: 4 additions & 1 deletion .github/workflows/front_ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: 'front ci'
on: pull_request
on:
pull_request:
branches:
- develop
jobs:
Component-test:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test": "vitest",
"test:run": "vitest run"
"test:run": "vitest run",
"chromatic": "chromatic --exit-zero-on-changes"
},
"dependencies": {
"@heroicons/react": "^2.2.0",
Expand Down Expand Up @@ -50,6 +51,7 @@
"@types/testing-library__react": "^10.0.1",
"@vitejs/plugin-react-swc": "^3.5.0",
"@vitest/ui": "^2.1.8",
"chromatic": "^11.25.2",
"eslint": "^9.17.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
Expand Down