Skip to content

Commit ac27ba1

Browse files
committed
ci: add basic GitHub CI workflows
1 parent 45687aa commit ac27ba1

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Check and Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
check-format:
11+
name: Check Code Format
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v6
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version: "24"
22+
cache: "npm"
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Check formatting with Prettier
28+
run: npx prettier --check .
29+
30+
build:
31+
name: Build Project
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v6
37+
38+
- name: Setup Node.js
39+
uses: actions/setup-node@v6
40+
with:
41+
node-version: "22"
42+
cache: "npm"
43+
44+
- name: Install dependencies
45+
run: npm ci
46+
47+
- name: Build the project
48+
run: npm run build

0 commit comments

Comments
 (0)