β test: E2E ν μ€νΈ μ½λ μΌκ΄ν λ° μ΅μ ν (1) #79
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: ν μ€νΈ 컀λ²λ¦¬μ§, νΉμ ν μ€νΈ λ‘κ·Έ 컀λ©νΈ μμ± λ‘μ§ μΆκ°νκΈ° |