File tree Expand file tree Collapse file tree 2 files changed +47
-9
lines changed Expand file tree Collapse file tree 2 files changed +47
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ env :
8
+ PRIMARY_NODEJS_VERSION : 18
9
+ REPORTER : ' min'
10
+
11
+ jobs :
12
+ lint :
13
+ name : Lint
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Setup node ${{ env.PRIMARY_NODEJS_VERSION }}
18
+ uses : actions/setup-node@v2
19
+ with :
20
+ node-version : ${{ env.PRIMARY_NODEJS_VERSION }}
21
+ cache : ' npm'
22
+ - run : npm ci
23
+ - run : npm run lint
24
+
25
+ unit-tests :
26
+ name : Unit tests
27
+ runs-on : ${{ matrix.os }}
28
+
29
+ strategy :
30
+ matrix :
31
+ os : [ubuntu-latest, macOS-latest, windows-latest]
32
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
33
+ node_version :
34
+ - 12.20.0
35
+ - 14.13.0
36
+ - 16
37
+ - 18
38
+
39
+ steps :
40
+ - uses : actions/checkout@v2
41
+ - name : Setup node ${{ matrix.node_version }}
42
+ uses : actions/setup-node@v2
43
+ with :
44
+ node-version : ${{ matrix.node_version }}
45
+ cache : ' npm'
46
+ - run : npm ci
47
+ - run : npm run test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments