test #40
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", "frontend"] | |
| paths: | |
| - "frontend/**" | |
| pull_request: | |
| branches: ["main", "frontend"] | |
| paths: | |
| - "frontend/**" | |
| jobs: | |
| build-and-check: | |
| name: Frontend Build & Format Check | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./frontend | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Format Check (Lint) | |
| run: npm run lint -- --max-warnings=0 | |
| # Runs ESLint to verify code quality and formatting rules defined in eslint config. | |
| # This satisfies the "Format Check" requirement. | |
| - name: Build Check | |
| run: npm run build | |
| # Verification that the Next.js application builds successfully. |