Fix: 테스트 실패 시 워크플로우 FAIL 되도록 수정 #12
This file contains 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: '테스트 코드 실행' | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 코드 체크아웃 | |
uses: actions/checkout@v3 | |
- name: 노드 설치 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- run: npm ci | |
- run: npx vitest --coverage | |
- name: 테스트 커버리지 결과 PR에 코멘트 추가하기 | |
if: always() | |
uses: davelosert/vitest-coverage-report-action@v2 | |
with: | |
github-token: ${{ secrets.PR_WRITE_TOKEN }} |