@@ -3,37 +3,64 @@ name: Build & Test
33on :
44 push :
55 branches :
6- - ' main'
6+ - " main"
77 pull_request :
88 branches :
9- - ' ** '
9+ - " ** "
1010
1111jobs :
12+ quality :
13+ name : 🔍 Lint & Format
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : 📥 Checkout Code
17+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
18+
19+ - name : 🟢 Setup pnpm
20+ uses : pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
21+
22+ - name : 🟢 Setup Node 22
23+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
24+ with :
25+ node-version : 22
26+ cache : " pnpm"
27+
28+ - name : 📦 Install Dependencies
29+ run : pnpm install --frozen-lockfile
30+
31+ - name : 🔎 Lint
32+ run : pnpm run lint
33+
34+ - name : 🎨 Format
35+ run : pnpm run format:check
36+
1237 build_and_test :
1338 strategy :
1439 matrix :
15- node : [20, 22, 24]
16- os : [' ubuntu-latest', ' windows-latest' ]
40+ node : [22, 24]
41+ os : [" ubuntu-latest", " windows-latest" ]
1742
1843 name : Node ${{ matrix.node }} on ${{ matrix.os }}
1944 runs-on : ${{ matrix.os }}
2045
2146 steps :
22- - name : 📥 Checkout Code
23- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
47+ - name : 📥 Checkout Code
48+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2449
25- - name : 🟢 Setup Node ${{ matrix.node }}
26- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
27- with :
28- node-version : ${{ matrix.node }}
29- cache : ' npm'
50+ - name : 🟢 Setup pnpm
51+ uses : pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
3052
31- - name : 📦 Install Dependencies
32- run : npm ci
53+ - name : 🟢 Setup Node ${{ matrix.node }}
54+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
55+ with :
56+ node-version : ${{ matrix.node }}
57+ cache : " pnpm"
3358
34- - name : 🏗️ Build
35- run : npm run build
59+ - name : 📦 Install Dependencies
60+ run : pnpm install --frozen-lockfile
3661
37- - name : 🧪 Test Jest
38- run : npm run test
62+ - name : 🏗️ Build
63+ run : pnpm run build
3964
65+ - name : 🧪 Test
66+ run : pnpm run test
0 commit comments