Chore/#5 Vitest 설정 파일 및 테스트 환경(setup) 추가 #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'vitest test' | |
| on: | |
| pull_request: | |
| paths: | |
| - "**/*.spec.ts" | |
| jobs: | |
| Component-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js and pnpm | |
| uses: ./.github/actions/pnpm-setup-node | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: run vitest | |
| run: pnpm test |