fix: 랜딩 스모크 E2E 추가로 Frontend CI 'No tests found' 해결 (#31) #15
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: Frontend CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend-ci.yml" | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend-ci.yml" | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| jobs: | |
| test: | |
| name: Type-check, Lint & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Lint | |
| run: npm run lint | |
| - name: Unit & Integration tests | |
| run: npx vitest run | |
| - name: Coverage | |
| run: npx vitest run --coverage | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: E2E tests | |
| run: npx playwright test |