File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments