File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ types : [opened, synchronize]
8
+
9
+ jobs :
10
+ test_matrix :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ node_version :
15
+ - 20
16
+ - 22
17
+
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - name : Use Node.js ${{ matrix.node_version }}
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : ${{ matrix.node_version }}
24
+ cache : npm
25
+ - run : npm ci
26
+ - run : npm run test:code
27
+
28
+ test :
29
+ runs-on : ubuntu-latest
30
+ needs : test_matrix
31
+ steps :
32
+ - uses : actions/checkout@v4
33
+ - uses : actions/setup-node@v4
34
+ with :
35
+ node-version : ${{ matrix.node_version }}
36
+ cache : npm
37
+ - run : npm ci
38
+ - run : npm run test:tsc
39
+ - run : npm run test:tsd
You can’t perform that action at this time.
0 commit comments