From 924494a801b18e0e6403dc5e7437d9d68fae3566 Mon Sep 17 00:00:00 2001 From: melloware Date: Mon, 31 Oct 2022 13:50:22 -0400 Subject: [PATCH] Fix #3533: Add unit tests to nightly and pr builds --- .github/workflows/node.js.yml | 5 +++++ package.json | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7ae466c965..3005adbd7a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -49,3 +49,8 @@ jobs: if: ${{ success() }} run: | npm run security:check + + - name: Unit Tests Check + if: ${{ success() }} + run: | + npm run test:check diff --git a/package.json b/package.json index 9f63d25e62..658b0990d8 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,15 @@ "build:lib": "NODE_ENV=production INPUT_DIR=components/lib/ OUTPUT_DIR=dist/ npm run build:package", "build:package": "npm run build:check && rollup -c && gulp build-resources && npm run build:api", "build:api": "node ./api-generator/build-api.js", - "build:check": "npm run lint && npm run format:check && npm run type:check && npm run security:check", + "build:check": "npm run lint && npm run format:check && npm run type:check && npm run security:check && npm run test:check", "security:check": "npm audit --production --audit-level high", "format": "prettier --write \"{components,pages,service,api-generator}/**/*.{js,ts,tsx}\"", "format:check": "prettier --check \"{components,pages,service,api-generator}/**/*.{js,ts,tsx}\"", "lint": "next lint --max-warnings=0", "lint:fix": "next lint --fix", "type:check": "tsc", - "test": "jest --watch --coverage" + "test": "jest --watch --coverage", + "test:check": "jest --watchAll=false --coverage" }, "dependencies": { "chart.js": "3.9.1",