✅ test: E2E 테스트 코드 일관화 및 최적화 (1) #75
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: BE E2E Test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'server/**' | |
| - '.github/workflows/test_server_e2e.yml' | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. 현재 PR 브랜치로 체크아웃 하기 | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| # 2. Node.js 환경 설정 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| # 3. 의존성 설치 | |
| - name: Install dependencies | |
| working-directory: ./server | |
| run: npm ci | |
| # 4. E2E 테스트 실행 | |
| - name: Run E2E Test | |
| working-directory: ./server | |
| run: npm run test:e2e | |
| # TODO: 테스트 커버리지, 혹은 테스트 로그 커멘트 작성 로직 추가하기 |