From 47a7fab089de628dcd9143b2df84f7a5843e960e Mon Sep 17 00:00:00 2001 From: Nicolas Polizzo Date: Wed, 28 Aug 2024 09:34:14 +0200 Subject: [PATCH] modify CI to run tests against mongoose 7 and 8 --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2fa9481..b23f1e4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,3 +52,11 @@ jobs: - name: Execute integration tests run: npm run test:integration + + - name: Execute tests against Mongoose 7 + run: lerna add mongoose@7 --dev --scope moleculer-db-adapter-mongoose && jest --testMatch "**/moleculer-db-adapter-mongoose/**/*.spec.js" + if: ${{ matrix.node-version != '10.x' && matrix.node-version != '12.x' }} + + - name: Execute tests against Mongoose 8 + run: lerna add mongoose@8 --dev --scope moleculer-db-adapter-mongoose && jest --testMatch "**/moleculer-db-adapter-mongoose/**/*.spec.js" + if: ${{ matrix.node-version != '10.x' && matrix.node-version != '12.x' }}