Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): 테스트 커버리지 자동화 #46

Merged
merged 1 commit into from
Dec 7, 2024
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
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run tests and upload coverage

on:
pull_request:

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: pnpm 설치
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Node.js 환경 설정
uses: actions/setup-node@v4
with:
cache: pnpm
node-version-file: .nvmrc
- name: 의존성 설치
run: pnpm install
- name: 테스트
run: pnpm vitest --coverage
- name: 코드커버리지 업로드
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
"@storybook/test": "catalog:",
"@tsconfig/strictest": "^2.0.5",
"@types/node": "^22.8.1",
"@vitest/coverage-v8": "2.1.4",
"chromatic": "^11.19.0",
"knip": "catalog:",
"sanitize.css": "^13.0.0",
"storybook": "catalog:",
"typescript": "catalog:"
"typescript": "catalog:",
"vitest": "^2.1.8"
},
"packageManager": "[email protected]"
}
187 changes: 187 additions & 0 deletions pnpm-lock.yaml

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

Loading
Loading