From 0a1b289ce4ac6cea101ffb10e423543925266ca9 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Sun, 21 Mar 2021 17:32:38 +0300 Subject: [PATCH] Fix scripts --- .github/workflows/test.yml | 3 +-- package.json | 6 ++++++ test/package.json | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78277e2..5bbebaa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,5 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 14.16.0 - - run: cd test - - run: npm ci + - run: npm run test-install - run: npm run test-ci diff --git a/package.json b/package.json index 0d66bd0..30c6028 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,12 @@ "node": ">=14.16.0", "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": { "type": "git", "url": "https://github.com/node-3d/addon-tools-raub.git" diff --git a/test/package.json b/test/package.json index 458a818..9454464 100644 --- a/test/package.json +++ b/test/package.json @@ -21,6 +21,7 @@ "scripts": { "test": "jest --coverage=false --watch", "test-ci": "jest --coverage=false --verbose", + "coverage": "rm -rf ../doc/jest && jest --coverage --silent", "build": "node-gyp rebuild", "preinstall": "cd .. && npm ci" },