File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * @ faranjit
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : 🧱 Checkout
13+ uses : actions/checkout@v4
14+
15+ - name : 📦 Setup PNPM
16+ uses : pnpm/action-setup@v4
17+ with :
18+ version : 10
19+
20+ - name : 🧰 Setup Node
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : 20
24+ cache : " pnpm"
25+
26+ - name : 📥 Install dependencies
27+ run : pnpm install --frozen-lockfile
28+
29+ - name : 🧪 Lint
30+ run : pnpm run lint
31+
32+ - name : 🧱 Build
33+ run : pnpm run build
34+
35+ - name : ✅ Test
36+ run : pnpm run test
Original file line number Diff line number Diff line change 3030 "build" : " tsc -p tsconfig.node.json && vite build" ,
3131 "clean" : " rimraf dist" ,
3232 "preview" : " vite preview" ,
33- "test" : " vitest run --reporter=dot " ,
33+ "test" : " vitest run --coverage " ,
3434 "test:watch" : " vitest" ,
35- "lint" : " eslint src --ext .ts,.tsx " ,
35+ "lint" : " eslint . --max-warnings=0 " ,
3636 "lint:fix" : " eslint src --ext .ts,.tsx --fix" ,
3737 "format" : " prettier --write ." ,
3838 "typecheck" : " tsc -p tsconfig.json --noEmit"
Original file line number Diff line number Diff line change 11/// <reference types="vitest" />
22
3- import { defineConfig } from "vite" ;
43import react from "@vitejs/plugin-react" ;
4+ import { defineConfig } from "vite" ;
55
66export default defineConfig ( {
77 plugins : [ react ( ) ] ,
You can’t perform that action at this time.
0 commit comments