-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 808 Bytes
/
node.yml
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
---
# .github/workflows/node.yml
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["22.x"]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install frontend dependencies
run: |
npm install
npm ci
working-directory: frontend
- name: Format frontend project
run: npm run format
working-directory: frontend
- name: Lint frontend project
run: npm run lint
working-directory: frontend
- name: Build Frontend project
run: npm run build --if-present
working-directory: frontend