perf(e2e): E2E 테스트 병렬 실행 활성화 #61
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: E2E UI Tests | |
| on: | |
| pull_request: | |
| types: | |
| - synchronize | |
| - opened | |
| - reopened | |
| - unlocked | |
| paths: | |
| - "src/frontend/**" | |
| - "src/backend/**" | |
| - "e2e/**" | |
| - "playwright.config.ts" | |
| - ".github/workflows/e2e-ui-tests.yml" | |
| - "justfile" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "src/frontend/**" | |
| - "src/backend/**" | |
| - "e2e/**" | |
| - "playwright.config.ts" | |
| - ".github/workflows/e2e-ui-tests.yml" | |
| - "justfile" | |
| workflow_dispatch: | |
| jobs: | |
| e2e-ui-tests: | |
| name: Run E2E UI tests | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: postgres | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Setup Node 22 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22.18.0" | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.15.0 | |
| - uses: extractions/setup-just@v3 | |
| - name: Install PostgreSQL client | |
| run: just install-psql | |
| - name: Install dependencies | |
| run: just deps-compact | |
| - name: Install Playwright browsers | |
| run: just deps-playwright | |
| - name: Run E2E UI tests | |
| run: just test e2e-ui | |
| env: | |
| VITE_DISCORD_SERVER_LINK: https://discord.gg/kZApcdSEJ4 | |
| - name: Upload test report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 7 |