Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3533: Add unit tests to nightly and PR builds #3538

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ jobs:
if: ${{ success() }}
run: |
npm run security:check

- name: Unit Tests Check
if: ${{ success() }}
run: |
npm run test:check
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down