Skip to content

Commit 8d7453d

Browse files
committed
fix tests on nodejs 12
1 parent b71e5ac commit 8d7453d

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,40 @@ on:
1111

1212
jobs:
1313
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 }}
1539
runs-on: ubuntu-latest
1640

1741
strategy:
1842
matrix:
19-
node-version: [12.x, 14.x, 16.x]
2043
# 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"}'
2148

2249
steps:
2350
- uses: actions/checkout@v2
@@ -27,7 +54,8 @@ jobs:
2754
node-version: ${{ matrix.node-version }}
2855
cache: 'npm'
2956
- run: npm ci
30-
- run: npm run build
3157
- run: npm test
58+
env:
59+
TS_NODE_COMPILER_OPTIONS: ${{ matrix.ts-node-compiler-options }}
3260
# Currently broken
3361
#- run: npm run node-coveralls

0 commit comments

Comments
 (0)