Skip to content

Commit a93441d

Browse files
ci(NODE-4655): add 18 to CI matrix (#515)
1 parent 853bbb0 commit a93441d

File tree

5 files changed

+26
-17
lines changed

5 files changed

+26
-17
lines changed

.evergreen/config.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ tasks:
152152
- func: run tests
153153
vars:
154154
TEST_TARGET: node
155+
- name: node-tests-v18
156+
tags: ["node"]
157+
commands:
158+
- func: fetch source
159+
vars:
160+
NODE_MAJOR_VERSION: 18
161+
- func: install dependencies
162+
- func: run tests
163+
vars:
164+
TEST_TARGET: node
155165
- name: browser-tests
156166
tags: ["browser"]
157167
commands:
@@ -168,14 +178,14 @@ tasks:
168178
commands:
169179
- func: fetch source
170180
vars:
171-
NODE_MAJOR_VERSION: 16
181+
NODE_MAJOR_VERSION: 18
172182
- func: install dependencies
173183
- func: run checks
174184
- name: check-typescript-oldest
175185
commands:
176186
- func: fetch source
177187
vars:
178-
NODE_MAJOR_VERSION: 16
188+
NODE_MAJOR_VERSION: 18
179189
- func: install dependencies
180190
- func: "run typescript"
181191
vars:
@@ -185,7 +195,7 @@ tasks:
185195
commands:
186196
- func: fetch source
187197
vars:
188-
NODE_MAJOR_VERSION: 16
198+
NODE_MAJOR_VERSION: 18
189199
- func: install dependencies
190200
- func: "run typescript"
191201
vars:
@@ -195,7 +205,7 @@ tasks:
195205
commands:
196206
- func: fetch source
197207
vars:
198-
NODE_MAJOR_VERSION: 16
208+
NODE_MAJOR_VERSION: 18
199209
- func: install dependencies
200210
- func: "run typescript"
201211
vars:
@@ -204,16 +214,16 @@ tasks:
204214

205215
buildvariants:
206216
- name: linux
207-
display_name: Ubuntu 18.04
208-
run_on: ubuntu1804-test
217+
display_name: Ubuntu 22.04
218+
run_on: ubuntu2004-small
209219
tasks: [".node", ".browser"]
210220
- name: mac
211221
display_name: MacOS 10.14
212222
run_on: macos-1014
213223
tasks: [".node"]
214224
- name: lint
215225
display_name: lint
216-
run_on: rhel70
226+
run_on: ubuntu2004-small
217227
tasks:
218228
- run-checks
219229
- check-typescript-oldest

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@rollup/plugin-node-resolve": "^9.0.0",
3838
"@rollup/plugin-replace": "^4.0.0",
3939
"@rollup/plugin-typescript": "^6.0.0",
40-
"@types/node": "^18.0.0",
40+
"@types/node": "^18.7.22",
4141
"@typescript-eslint/eslint-plugin": "^5.30.0",
4242
"@typescript-eslint/parser": "^5.30.0",
4343
"array-includes": "^3.1.3",

test/mocha.opts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
--require ts-node/register
2-
--require chai/register-expect
32
--require source-map-support/register
43
--timeout 10000

test/register-bson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// and make sure you run mocha using our .mocharc.json or with --require ts-node/register
88

99
// This should be done by mocha --require, but that isn't supported until mocha version 7+
10-
require('chai/register-expect');
10+
global.expect = require('chai').expect;
1111
require('array-includes/auto');
1212
require('object.entries/auto');
1313
require('array.prototype.flatmap/auto');

0 commit comments

Comments
 (0)