Skip to content

Draft: CI

Draft: CI #5

Workflow file for this run

name: Lint and Format on PR
on:
pull_request:
jobs:
frontend-lint:
name: Frontend ESLint & Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies
working-directory: frontend
run: npm ci
- name: Run ESLint (auto-fix)
working-directory: frontend
run: npm run lint
- name: Run Prettier check
working-directory: frontend
run: npx prettier --check .