diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7bd4ceea19..749ccfd58f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,17 +42,19 @@ jobs: node: [16, 18, 20] os: [ubuntu-20.04, ubuntu-22.04] mongodb: [4.4.29, 5.0.26, 6.0.15, 7.0.12] + node-driver: [6.3.0, latest] include: - os: ubuntu-20.04 # customize on which matrix the coverage will be collected on mongodb: 5.0.26 node: 16 + node-driver: latest coverage: true exclude: - os: ubuntu-22.04 # exclude because there are no 4.x mongodb builds for 2204 mongodb: 4.4.29 - os: ubuntu-22.04 # exclude because there are no 5.x mongodb builds for 2204 mongodb: 5.0.26 - name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongodb }} OS ${{ matrix.os }} + name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongodb }} OS ${{ matrix.os }} Node driver ${{ matrix.node-driver }} env: MONGOMS_VERSION: ${{ matrix.mongodb }} MONGOMS_PREFER_GLOBAL_PATH: 1 @@ -73,6 +75,7 @@ jobs: key: ${{ matrix.os }}-${{ matrix.mongodb }} - run: npm install + - run: npm install mongodb@${{ matrix.node-driver }} - name: NPM Test without Coverage run: npm test if: matrix.coverage != true diff --git a/package.json b/package.json index d51943ee62..c4a43142ad 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,9 @@ ], "license": "MIT", "dependencies": { - "bson": "^6.7.0", + "bson": "^6.2.0", "kareem": "2.6.3", - "mongodb": "6.9.0", + "mongodb": "^6.3.0", "mpath": "0.9.0", "mquery": "5.0.0", "ms": "2.1.3",