feat/Implement About Us Page (#293) #38
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: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "pnpm" | |
| cache-dependency-path: frontend/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Format Check (Lint) | |
| run: pnpm 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: pnpm build | |
| # Verification that the Next.js application builds successfully. |