Skip to content

Commit

Permalink
try to set mongoose 8 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezystem committed Aug 28, 2024
1 parent 944dcf9 commit 0eb212c
Show file tree
Hide file tree
Showing 4 changed files with 14,835 additions and 12,542 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
- name: Execute integration tests
run: npm run test:integration

- name: Execute tests against Mongoose 7
run: rm ./packages/moleculer-db-adapter-mongoose/package-lock.json && npm run test:mongoose7
- name: Execute tests against Mongoose 6
run: npm run test:mongoose6
if: ${{ matrix.node-version != '10.x' && matrix.node-version != '12.x' }}

- name: Execute tests against Mongoose 8
run: rm ./packages/moleculer-db-adapter-mongoose/package-lock.json && npm run test:mongoose8
- name: Execute tests against Mongoose 7
run: npm run test:mongoose7
if: ${{ matrix.node-version != '10.x' && matrix.node-version != '12.x' }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"demo": "node dev.js",
"test:unit": "jest --testMatch \"**/unit/**/*.spec.js\" --coverage",
"test:integration": "jest --testMatch \"**/integration/**/*.spec.js\" --runInBand --coverage",
"test:mongoose6": "lerna add mongoose@6 --dev --scope moleculer-db-adapter-mongoose && jest --testMatch \"**/moleculer-db-adapter-mongoose/**/*.spec.js\"",
"test:mongoose7": "lerna add mongoose@7 --dev --scope moleculer-db-adapter-mongoose && jest --testMatch \"**/moleculer-db-adapter-mongoose/**/*.spec.js\"",
"test:mongoose8": "lerna add mongoose@8 --dev --scope moleculer-db-adapter-mongoose && jest --testMatch \"**/moleculer-db-adapter-mongoose/**/*.spec.js\"",
"ci": "jest --watch",
"coverall": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"init": "cd packages && moleculer init addon",
Expand Down
Loading

0 comments on commit 0eb212c

Please sign in to comment.