File tree 9 files changed +47
-67
lines changed
9 files changed +47
-67
lines changed Original file line number Diff line number Diff line change 16
16
- 18.x
17
17
- 20.x
18
18
- 22.x
19
+ mongodb :
20
+ - 6.0.16
21
+ - 7.0.12
19
22
steps :
20
23
21
24
with :
29
32
- run : node -v
30
33
- run : pnpm install --frozen-lockfile
31
34
- run : pnpm test:build
35
+ env :
36
+ MONGOMS_VERSION : ${{ matrix.mongodb }}
32
37
33
38
lint :
34
39
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 79
79
"jsdoc-parse" : " 6.2.1" ,
80
80
"lint-staged" : " 15.2.7" ,
81
81
"mongodb" : " 6.8.0" ,
82
- "mongodb-memory-server" : " 9.4 .0" ,
82
+ "mongodb-memory-server" : " 10.0 .0" ,
83
83
"mongoose" : " 7.5.2" ,
84
84
"pinst" : " 3.0.0" ,
85
85
"prettier" : " 3.3.2" ,
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
- pnpm build
6
-
7
5
npm pack
8
6
9
7
mkdir ./build 2> /dev/null || true
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ async function setup() {
20
20
21
21
const uri = mongoServer . getUri ( ) ;
22
22
23
- console . log ( `Testing with ${ uri } ${ DB } ` ) ;
23
+ console . log ( `Testing with MongoDB v ${ process . env . MONGOMS_VERSION } on ${ uri } ${ DB } ` ) ;
24
24
25
25
connection = await MongoClient . connect ( uri ) ;
26
26
const db = connection . db ( DB ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ async function setup() {
18
18
19
19
const uri = mongoServer . getUri ( ) ;
20
20
21
- console . log ( `Testing with ${ uri } ${ DB } ` ) ;
21
+ console . log ( `Testing with MongoDB v ${ process . env . MONGOMS_VERSION } on ${ uri } ${ DB } ` ) ;
22
22
23
23
connection = await MongoClient . connect ( uri ) ;
24
24
const db = connection . db ( DB ) ;
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ export MONGOMS_VERSION=${MONGOMS_VERSION:- 6.0.16}
6
+
5
7
./tests/build.sh
6
8
7
9
cd tests/esm/
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async function setup(): Promise<void> {
19
19
20
20
const uri = mongoServer . getUri ( ) ;
21
21
22
- console . log ( `Testing with ${ uri } ${ DB } ` ) ;
22
+ console . log ( `Testing with MongoDB v ${ process . env . MONGOMS_VERSION } on ${ uri } ${ DB } ` ) ;
23
23
24
24
connection = await MongoClient . connect ( uri ) ;
25
25
const db = connection . db ( DB ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async function setup(): Promise<void> {
19
19
20
20
const uri = mongoServer . getUri ( ) ;
21
21
22
- console . log ( `Testing with ${ uri } ${ DB } ` ) ;
22
+ console . log ( `Testing with MongoDB v ${ process . env . MONGOMS_VERSION } on ${ uri } ${ DB } ` ) ;
23
23
24
24
connection = await MongoClient . connect ( uri ) ;
25
25
const db = connection . db ( DB ) ;
You can’t perform that action at this time.
0 commit comments