diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f31cc79c56a..4c7258bf49a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,17 +41,17 @@ jobs: matrix: node: [14, 16, 18, 20] os: [ubuntu-20.04, ubuntu-22.04] - mongodb: [4.4.18, 5.0.14, 6.0.4] + mongodb: [4.4.28, 5.0.25, 6.0.14, 7.0.7] include: - os: ubuntu-20.04 # customize on which matrix the coverage will be collected on - mongodb: 5.0.14 + mongodb: 5.0.25 node: 16 coverage: true exclude: - os: ubuntu-22.04 # exclude because there are no 4.x mongodb builds for 2204 - mongodb: 4.4.18 + mongodb: 4.4.28 - os: ubuntu-22.04 # exclude because there are no 5.x mongodb builds for 2204 - mongodb: 5.0.14 + mongodb: 5.0.25 name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongodb }} OS ${{ matrix.os }} env: MONGOMS_VERSION: ${{ matrix.mongodb }} @@ -90,7 +90,7 @@ jobs: runs-on: ubuntu-20.04 name: Deno tests env: - MONGOMS_VERSION: 6.0.4 + MONGOMS_VERSION: 6.0.14 MONGOMS_PREFER_GLOBAL_PATH: 1 FORCE_COLOR: true steps: @@ -108,7 +108,7 @@ jobs: - name: Setup Deno uses: denoland/setup-deno@v1 with: - deno-version: v1.34.x + deno-version: v1.37.x - run: deno --version - run: npm install - name: Run Deno tests diff --git a/package.json b/package.json index 115d1cb94c8..8407f41ab09 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "mkdirp": "^3.0.1", "mocha": "10.2.0", "moment": "2.x", - "mongodb-memory-server": "8.15.1", + "mongodb-memory-server": "9.2.0", "ncp": "^2.0.0", "nyc": "15.1.0", "pug": "3.0.2", diff --git a/test/schema.select.test.js b/test/schema.select.test.js index 33de8b281e7..f9b02a00d86 100644 --- a/test/schema.select.test.js +++ b/test/schema.select.test.js @@ -26,6 +26,9 @@ describe('schema select option', function() { afterEach(() => require('./util').stopRemainingOps(db)); it('excluding paths through schematype', async function() { + // data clearing is required for this test, because in deno some other test leaks a "_id: immutable" index + await db.dropDatabase(); + const schema = new Schema({ thin: Boolean, name: { type: String, select: false },