File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed
Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change 11name : Frontend CI
2-
32on :
43 push :
54 branches : ["main", "frontend"]
98 branches : ["main", "frontend"]
109 paths :
1110 - " frontend/**"
12-
1311jobs :
1412 build-and-check :
1513 name : Frontend Build & Format Check
1614 runs-on : ubuntu-latest
1715 defaults :
1816 run :
1917 working-directory : ./frontend
20-
2118 steps :
2219 - name : Checkout repository
2320 uses : actions/checkout@v4
24-
25- - name : Install pnpm
26- uses : pnpm/action-setup@v4
27- with :
28- version : 9
29-
21+
3022 - name : Setup Node.js
3123 uses : actions/setup-node@v4
3224 with :
3325 node-version : " 20"
34- cache : " pnpm "
35- cache-dependency-path : frontend/pnpm -lock.yaml
36-
26+ cache : " npm "
27+ cache-dependency-path : " ./ frontend/package -lock.json "
28+
3729 - name : Install dependencies
38- run : pnpm install
39-
30+ run : npm ci
31+
4032 - name : Format Check (Lint)
41- run : pnpm lint --max-warnings=0
33+ run : npm run lint -- --max-warnings=0
4234 # Runs ESLint to verify code quality and formatting rules defined in eslint config.
4335 # This satisfies the "Format Check" requirement.
44-
36+
4537 - name : Build Check
46- run : pnpm build
38+ run : npm run build
4739 # Verification that the Next.js application builds successfully.
You can’t perform that action at this time.
0 commit comments