File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Node.js CI with pnpm
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build-and-test :
13+ runs-on : ubuntu-latest
14+
15+ strategy :
16+ # Define a matrix for different Node.js versions
17+ matrix :
18+ node-version : [18.x, 20.x, 22.x]
19+
20+ steps :
21+ - name : Checkout repository
22+ uses : actions/checkout@v4
23+
24+ - name : Install pnpm
25+ uses : pnpm/action-setup@v4
26+ with :
27+ version : latest
28+
29+ - name : Setup Node.js ${{ matrix.node-version }}
30+ uses : actions/setup-node@v4
31+ with :
32+ node-version : ${{ matrix.node-version }}
33+ cache : ' pnpm'
34+
35+ - name : Install dependencies with pnpm
36+ run : pnpm install --frozen-lockfile
37+
38+ - name : Run build (TypeScript compilation)
39+ run : pnpm run build
40+
41+ - name : Run tests (Vitest)
42+ run : pnpm run test -- --run
You can’t perform that action at this time.
0 commit comments