Skip to content

feat: user_dashboard #21

feat: user_dashboard

feat: user_dashboard #21

Workflow file for this run

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.