File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : PR Test
2+
3+ on :
4+ pull_request :
5+ branches : [ main ]
6+
7+ jobs :
8+ test :
9+ name : Test on ${{ matrix.os }} with Node ${{ matrix.node-version }}
10+ runs-on : ${{ matrix.os }}
11+ fail-fast : false
12+
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, windows-latest, macOS-latest]
16+ node-version : [18.x, 20.x, 22.x, 24.x]
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Use Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ cache : ' npm'
26+
27+ - name : Install dependencies
28+ run : npm ci
29+
30+ - name : Lint
31+ run : npm run lint
32+
33+ - name : Type check
34+ run : npm run type:check
35+
36+ - name : Build
37+ run : npm run build
38+
39+ - name : Run tests
40+ run : npm run test:coverage
41+
42+ - name : Verify binary execution
43+ run : node dist/index.js
You can’t perform that action at this time.
0 commit comments