File tree Expand file tree Collapse file tree 4 files changed +65
-122
lines changed
Expand file tree Collapse file tree 4 files changed +65
-122
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : " Run Playwright tests "
1+ name : " Playwright Tests "
22
33on :
44 pull_request :
Original file line number Diff line number Diff line change 1+ name : TypeScript Check
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - ' releases/*'
8+ pull_request :
9+ branches :
10+ - main
11+ - ' releases/*'
12+ workflow_dispatch :
13+
14+ jobs :
15+ type-check :
16+ name : Run TypeScript Check for idb-cache
17+ runs-on : ubuntu-22.04
18+
19+ steps :
20+ # 1. Checkout the repository
21+ - uses : actions/checkout@v3
22+
23+ # 2. Setup Node.js
24+ - name : Setup Node.js
25+ uses : actions/setup-node@v3
26+ with :
27+ node-version : ' 20'
28+
29+ # 3. Setup pnpm
30+ - name : Setup pnpm
31+ uses : pnpm/action-setup@v2
32+ with :
33+ version : 7.x
34+
35+ # 4: Cache pnpm dependencies (pnpm store and node_modules)
36+ - name : Cache pnpm dependencies
37+ uses : actions/cache@v3
38+ with :
39+ path : |
40+ ~/.pnpm-store
41+ node_modules
42+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43+ restore-keys : |
44+ ${{ runner.os }}-pnpm-store-
45+
46+ # 5: Install dependencies
47+ - name : Install dependencies
48+ run : pnpm install
49+
50+ # 6: Run TypeScript Check and Save Logs
51+ - name : Run TypeScript Check
52+ run : |
53+ mkdir -p logs
54+ pnpm --filter packages/idb-cache typescript:check > logs/typescript-errors.log 2>&1 || true
55+
56+ # 7: Upload TypeScript Logs (on failure)
57+ - name : Upload TypeScript Logs
58+ if : failure()
59+ uses : actions/upload-artifact@v3
60+ with :
61+ name : typescript-errors
62+ path : logs/typescript-errors.log
Original file line number Diff line number Diff line change 2323 "scripts" : {
2424 "build" : " rslib build" ,
2525 "dev" : " rslib build --watch" ,
26- "biome:check" : " biome check . --write"
26+ "biome:check" : " biome check . --write" ,
27+ "typescript:check" : " tsc --noEmit"
2728 },
2829 "peerDependencies" : {
2930 "@rslib/core" : " ^0.0.15"
You can’t perform that action at this time.
0 commit comments