Skip to content

Commit

Permalink
try to run lerna from npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezystem committed Aug 28, 2024
1 parent 47a7fab commit ee3a4b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
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"
run: npm run test:mongoose7
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"
run: npm run test:mongoose8
if: ${{ matrix.node-version != '10.x' && matrix.node-version != '12.x' }}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lerna": "2.0.0-rc.5",
"lerna": "4.0.0",
"packages": [
"packages/*"
],
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"demo": "node dev.js",
"test:unit": "jest --testMatch \"**/unit/**/*.spec.js\" --coverage",
"test:integration": "jest --testMatch \"**/integration/**/*.spec.js\" --runInBand --coverage",
"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

0 comments on commit ee3a4b4

Please sign in to comment.