Fix scripts

This commit is contained in:
Luis Blanco 2021-03-21 17:32:38 +03:00
parent 773a356788
commit 0a1b289ce4
3 changed files with 8 additions and 2 deletions

View File

@ -16,6 +16,5 @@ jobs:
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 14.16.0 node-version: 14.16.0
- run: cd test - run: npm run test-install
- run: npm ci
- run: npm run test-ci - run: npm run test-ci

View File

@ -39,6 +39,12 @@
"node": ">=14.16.0", "node": ">=14.16.0",
"npm": ">=6.14.1" "npm": ">=6.14.1"
}, },
"scripts": {
"test": "cd test && npm run test && cd ..",
"test-ci": "cd test && npm run test-ci && cd ..",
"test-install": "cd test && npm ci && cd ..",
"test-coverage": "cd test && npm run coverage && cd .."
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/node-3d/addon-tools-raub.git" "url": "https://github.com/node-3d/addon-tools-raub.git"

View File

@ -21,6 +21,7 @@
"scripts": { "scripts": {
"test": "jest --coverage=false --watch", "test": "jest --coverage=false --watch",
"test-ci": "jest --coverage=false --verbose", "test-ci": "jest --coverage=false --verbose",
"coverage": "rm -rf ../doc/jest && jest --coverage --silent",
"build": "node-gyp rebuild", "build": "node-gyp rebuild",
"preinstall": "cd .. && npm ci" "preinstall": "cd .. && npm ci"
}, },