-
Notifications
You must be signed in to change notification settings - Fork 88
37 lines (33 loc) · 965 Bytes
/
frontend-ci.yml
File metadata and controls
37 lines (33 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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.