Skip to content

Commit 14cabf2

Browse files
Add frontend build check workflow
1 parent 342d0cd commit 14cabf2

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/frontend.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Frontend Build Check
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "frontend/**"
8+
- ".github/workflows/frontend.yml"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "frontend/**"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Node.js 20
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "20"
26+
cache: "npm"
27+
cache-dependency-path: "frontend/package-lock.json"
28+
29+
- name: Install frontend dependencies
30+
working-directory: frontend
31+
run: npm ci
32+
33+
- name: Run frontend lint
34+
working-directory: frontend
35+
run: npm run lint --if-present
36+
37+
- name: Build frontend
38+
working-directory: frontend
39+
run: npm run build

0 commit comments

Comments
 (0)