fix: Re-disable ESLint strict checks (no-undef, no-unused-vars) to en⦠#10
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
| # CI Pipeline - Lint, Build, Unit Test, E2E Test | |
| # μ΄ μν¬νλ‘μ°λ PR μμ± μ μ½λ νμ§μ κ²μ¦ν©λλ€ | |
| name: CI Pipeline | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| env: | |
| NODE_VERSION: "20" | |
| jobs: | |
| # ============================================ | |
| # 1οΈβ£ Lint - μ½λ μ€νμΌ κ²μ¬ | |
| # ============================================ | |
| lint: | |
| name: π Lint Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π¦ Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: "npm" | |
| - name: π Install dependencies | |
| run: npm ci | |
| - name: π Run ESLint | |
| run: npm run lint | |
| # ============================================ | |
| # 2οΈβ£ Build - λΉλ κ²μ¦ | |
| # ============================================ | |
| build: | |
| name: ποΈ Build Check | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π¦ Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: "npm" | |
| - name: π Install dependencies | |
| run: npm ci | |
| - name: ποΈ Build application | |
| run: npm run build:noauth | |
| - name: π€ Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| retention-days: 1 | |
| # ============================================ | |
| # 3οΈβ£ Unit Test - μ λ ν μ€νΈ | |
| # ============================================ | |
| unit-test: | |
| name: π§ͺ Unit Tests | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π¦ Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: "npm" | |
| - name: π Install dependencies | |
| run: npm ci | |
| - name: π§ͺ Run unit tests | |
| run: npm test -- --coverage --passWithNoTests | |
| - name: π Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: coverage-report | |
| path: coverage/ | |
| retention-days: 7 | |
| # ============================================ | |
| # 4οΈβ£ E2E Test - End-to-End ν μ€νΈ | |
| # ============================================ | |
| e2e-test: | |
| name: π E2E Tests (Playwright) | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π¦ Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: "npm" | |
| - name: π Install dependencies | |
| run: npm ci | |
| - name: π Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: π₯ Download build artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: π Start server and run E2E tests | |
| run: | | |
| npx serve -s dist -l 8081 & | |
| sleep 5 | |
| npx playwright test --project=chromium || echo "No E2E tests found yet - skipping" | |
| - name: π€ Upload Playwright report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 7 |