File tree Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
- name : Node ${{ matrix.node-version }}
14
+ name : Build
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - uses : actions/setup-node@v2
19
+ with :
20
+ node-version : ' 16'
21
+ cache : ' npm'
22
+ - run : npm ci
23
+ - run : npm build
24
+
25
+ lint :
26
+ name : Lint
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - uses : actions/checkout@v2
30
+ - uses : actions/setup-node@v2
31
+ with :
32
+ node-version : ' 16'
33
+ cache : ' npm'
34
+ - run : npm ci
35
+ - run : npm lint
36
+
37
+ test :
38
+ name : Test node ${{ matrix.node-version }}
15
39
runs-on : ubuntu-latest
16
40
17
41
strategy :
18
42
matrix :
19
- node-version : [12.x, 14.x, 16.x]
20
43
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
44
+ node-version : [12.x, 14.x, 16.x, 17.x]
45
+ include :
46
+ - node-version : 12.x
47
+ ts-node-compiler-options : ' {"target":"es2019"}'
21
48
22
49
steps :
23
50
- uses : actions/checkout@v2
27
54
node-version : ${{ matrix.node-version }}
28
55
cache : ' npm'
29
56
- run : npm ci
30
- - run : npm run build
31
57
- run : npm test
58
+ env :
59
+ TS_NODE_COMPILER_OPTIONS : ${{ matrix.ts-node-compiler-options }}
32
60
# Currently broken
33
61
# - run: npm run node-coveralls
You can’t perform that action at this time.
0 commit comments