We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 342d0cd commit 14cabf2Copy full SHA for 14cabf2
1 file changed
.github/workflows/frontend.yml
@@ -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
11
12
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
35
+ run: npm run lint --if-present
36
37
+ - name: Build frontend
38
39
+ run: npm run build
0 commit comments