Skip to content

Commit

Permalink
feat(ci): add coverage automation
Browse files Browse the repository at this point in the history
  • Loading branch information
noahluftyang committed Dec 3, 2024
1 parent 80f5a5b commit 96fe81e
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 1 deletion.
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

0 comments on commit 96fe81e

Please sign in to comment.