Skip to content

Commit 761fb63

Browse files
Merge pull request #168 from D3vPals/feat/#167
CI스크립트 추가 (issue #167)
2 parents a90f64a + 356ccd9 commit 761fb63

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed

.github/workflows/chromatic.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Chromatic'
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
chromatic:
10+
name: Run Chromatic
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Run Chromatic
23+
uses: chromaui/action@latest
24+
with:
25+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

.github/workflows/front_ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: 'front ci'
2-
on: pull_request
2+
on:
3+
pull_request:
4+
branches:
5+
- develop
36
jobs:
47
Component-test:
58
runs-on: ubuntu-latest

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"storybook": "storybook dev -p 6006",
1212
"build-storybook": "storybook build",
1313
"test": "vitest",
14-
"test:run": "vitest run"
14+
"test:run": "vitest run",
15+
"chromatic": "chromatic --exit-zero-on-changes"
1516
},
1617
"dependencies": {
1718
"@heroicons/react": "^2.2.0",
@@ -50,6 +51,7 @@
5051
"@types/testing-library__react": "^10.0.1",
5152
"@vitejs/plugin-react-swc": "^3.5.0",
5253
"@vitest/ui": "^2.1.8",
54+
"chromatic": "^11.25.2",
5355
"eslint": "^9.17.0",
5456
"eslint-plugin-import": "^2.31.0",
5557
"eslint-plugin-jsx-a11y": "^6.10.2",

0 commit comments

Comments
 (0)