Skip to content

Commit

Permalink
Merge pull request #129 from dmswn1004/develop
Browse files Browse the repository at this point in the history
playwright 세팅 및 기능 수정 및 Storybook cd 적용
  • Loading branch information
dmswn1004 authored May 16, 2024
2 parents d2dac7f + 418500a commit 116a2e4
Show file tree
Hide file tree
Showing 26 changed files with 1,018 additions and 259 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Chromatic Deployment'

on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: npm install
- uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ src/Router.tsx
node_modules/vite/bin/vite.js

# snapshots file
__snapshots__
__snapshots__

# playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
11 changes: 8 additions & 3 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import type { Preview } from '@storybook/react';
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import { QueryClientProvider } from '@tanstack/react-query';
import { getClient } from './../src/queryClient';
import '../src/GlobalStyle.tsx';

export const decorators = [
(Story) => (
<body>
<Story />
</body>
<MemoryRouter>
<QueryClientProvider client={getClient()}>
<Story />
</QueryClientProvider>
</MemoryRouter>
),
];

Expand Down
96 changes: 96 additions & 0 deletions node_modules/.package-lock.json

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

Loading

0 comments on commit 116a2e4

Please sign in to comment.