File tree Expand file tree Collapse file tree 2 files changed +88
-0
lines changed
Expand file tree Collapse file tree 2 files changed +88
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ branches : [ main, master ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ node-version : [16.x, 18.x, 20.x]
16+
17+ steps :
18+ - name : Checkout code
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 : ' yarn'
26+
27+ - name : Install dependencies
28+ run : yarn install --frozen-lockfile
29+
30+ - name : Run tests
31+ run : yarn test
32+
33+ - name : Build project
34+ run : yarn build
35+
36+ lint-and-format :
37+ runs-on : ubuntu-latest
38+
39+ steps :
40+ - name : Checkout code
41+ uses : actions/checkout@v4
42+
43+ - name : Use Node.js 18.x
44+ uses : actions/setup-node@v4
45+ with :
46+ node-version : 18.x
47+ cache : ' yarn'
48+
49+ - name : Install dependencies
50+ run : yarn install --frozen-lockfile
51+
52+ - name : Check TypeScript types
53+ run : yarn build
Original file line number Diff line number Diff line change 1+ name : Cross-Platform Tests
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ branches : [ main, master ]
8+
9+ jobs :
10+ test-cross-platform :
11+ runs-on : ${{ matrix.os }}
12+
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, windows-latest, macos-latest]
16+ node-version : [18.x]
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v4
21+
22+ - name : Use Node.js ${{ matrix.node-version }}
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : ${{ matrix.node-version }}
26+ cache : ' yarn'
27+
28+ - name : Install dependencies
29+ run : yarn install --frozen-lockfile
30+
31+ - name : Run tests
32+ run : yarn test
33+
34+ - name : Build project
35+ run : yarn build
You can’t perform that action at this time.
0 commit comments