From dc07ea3bbe8c09251c29c285ed6109a23c0fd84b Mon Sep 17 00:00:00 2001 From: SanketD92 Date: Thu, 22 Apr 2021 12:54:18 -0400 Subject: [PATCH 1/4] feat: add test coverage in GitHub Action --- .github/workflows/unit-test-code-analysis.yml | 12 +++--- .gitignore | 1 + .../packages/base-post-deployment/.gitignore | 1 + .../base-post-deployment/package.json | 1 + .../packages/base-raas-ui/.gitignore | 1 + .../packages/base-raas-ui/package.json | 1 + .../base-raas-cfn-templates/.gitignore | 1 + .../base-raas-cfn-templates/package.json | 1 + .../base-raas-post-deployment/.gitignore | 1 + .../base-raas-post-deployment/package.json | 1 + .../packages/base-raas-rest-api/.gitignore | 1 + .../packages/base-raas-rest-api/package.json | 1 + .../packages/base-raas-services/.gitignore | 1 + .../base-raas-services/jest.config.js | 3 +- .../lib/user/user-service.js | 10 +++++ .../packages/base-raas-services/package.json | 2 +- .../base-raas-workflow-steps/.gitignore | 1 + .../base-raas-workflow-steps/package.json | 1 + .../packages/base-raas-workflows/.gitignore | 1 + .../packages/base-raas-workflows/package.json | 1 + .../packages/serverless-packer/.gitignore | 1 + .../packages/serverless-packer/package.json | 1 + .../packages/api-handler-factory/.gitignore | 1 + .../packages/api-handler-factory/package.json | 1 + .../packages/base-api-handler/.gitignore | 1 + .../packages/base-api-handler/package.json | 1 + .../packages/base-authn-handler/.gitignore | 1 + .../packages/base-authn-handler/package.json | 1 + .../packages/base-controllers/.gitignore | 1 + .../packages/base-controllers/package.json | 1 + .../packages/services/.gitignore | 1 + .../packages/services/package.json | 1 + .../addon-base-ui/packages/base-ui/.gitignore | 1 + .../packages/base-ui/package.json | 1 + .../packages/serverless-ui-tools/.gitignore | 1 + .../packages/serverless-ui-tools/package.json | 1 + .../packages/base-worklfow-api/.gitignore | 1 + .../packages/base-worklfow-api/package.json | 1 + .../packages/base-workflow-ui/.gitignore | 1 + .../packages/base-workflow-core/.gitignore | 1 + .../packages/base-workflow-core/package.json | 1 + .../base-workflow-templates/.gitignore | 1 + .../base-workflow-templates/package.json | 1 + .../packages/base-worklfow-steps/.gitignore | 1 + .../packages/base-worklfow-steps/package.json | 1 + .../packages/workflow-engine/.gitignore | 1 + .../packages/workflow-engine/package.json | 1 + .../serverless-backend-tools/.gitignore | 1 + .../serverless-backend-tools/package.json | 1 + .../serverless-go-build-tools/.gitignore | 1 + .../serverless-go-build-tools/package.json | 1 + .../serverless-settings-helper/package.json | 1 + .../packages/services-container/.gitignore | 1 + .../packages/services-container/package.json | 1 + .../addon-base/packages/services/.gitignore | 1 + .../addon-base/packages/services/package.json | 1 + .../environment-sc-workflow-steps/.gitignore | 1 + .../package.json | 1 + .../environment-sc-workflows/.gitignore | 1 + .../environment-sc-workflows/package.json | 1 + .../environment-type-mgmt-api/.gitignore | 1 + .../environment-type-mgmt-api/package.json | 1 + .../environment-type-mgmt-services/.gitignore | 1 + .../package.json | 1 + .../environment-type-mgmt-ui/.gitignore | 1 + .../environment-type-mgmt-ui/package.json | 1 + .../packages/key-pair-mgmt-api/.gitignore | 1 + .../packages/key-pair-mgmt-api/package.json | 1 + .../key-pair-mgmt-services/.gitignore | 1 + .../key-pair-mgmt-services/package.json | 1 + .../packages/key-pair-mgmt-ui/.gitignore | 1 + .../packages/s3-synchronizer/.gitignore | 1 + .../.gitignore | 1 + .../package.json | 1 + codecov.yml | 40 +++++++++++++++++++ docs/package.json | 3 +- main/cicd/.gitignore | 1 + main/end-to-end-tests/package.json | 3 +- main/integration-tests/.gitignore | 1 + main/integration-tests/jest.config.js | 2 + main/integration-tests/package.json | 7 ++-- main/packages/.gitignore | 1 + main/packages/controllers/.gitignore | 1 + main/packages/controllers/package.json | 1 + main/packages/services/.gitignore | 1 + main/packages/services/package.json | 1 + main/solution/.gitignore | 1 + main/solution/backend/.gitignore | 1 + main/solution/backend/package.json | 1 + main/solution/edge-lambda/.gitignore | 1 + main/solution/environment-tools/.gitignore | 1 + main/solution/infrastructure/.gitignore | 1 + main/solution/machine-images/.gitignore | 1 + main/solution/post-deployment/.gitignore | 1 + main/solution/post-deployment/package.json | 1 + main/solution/prepare-master-acc/.gitignore | 1 + main/solution/ui/.gitignore | 1 + main/solution/ui/package.json | 4 +- scripts/load-test-workspaces/.gitignore | 1 + scripts/run-unit-tests-github.sh | 2 + 100 files changed, 159 insertions(+), 18 deletions(-) create mode 100644 codecov.yml create mode 100755 scripts/run-unit-tests-github.sh diff --git a/.github/workflows/unit-test-code-analysis.yml b/.github/workflows/unit-test-code-analysis.yml index 8285311cc4..f2e7fe9018 100644 --- a/.github/workflows/unit-test-code-analysis.yml +++ b/.github/workflows/unit-test-code-analysis.yml @@ -8,7 +8,7 @@ on: pull_request: branches: - develop - - 'feat-*' + - "feat-*" jobs: static-code-analysis-and-unit-test: name: Unit Tests & Code Analysis @@ -31,10 +31,12 @@ jobs: - name: Install Node.js dependencies run: | npm install -g pnpm + npm install -g codecov pnpm recursive install --unsafe-perm --stream - - name: Run static code analysis & linting tests - run: | - ./scripts/run-static-code-analysis.sh --stream - name: Run unit tests run: | - ./scripts/run-unit-tests.sh --stream + ./scripts/run-unit-tests-github.sh --stream + - name: CodeCov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos, but helps in smoother report uploads diff --git a/.gitignore b/.gitignore index aef720d888..2d049dc485 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log **/pnpm-debug.log diff --git a/addons/addon-base-post-deployment/packages/base-post-deployment/.gitignore b/addons/addon-base-post-deployment/packages/base-post-deployment/.gitignore index 481db716f2..a6b6ec72ae 100644 --- a/addons/addon-base-post-deployment/packages/base-post-deployment/.gitignore +++ b/addons/addon-base-post-deployment/packages/base-post-deployment/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-post-deployment/packages/base-post-deployment/package.json b/addons/addon-base-post-deployment/packages/base-post-deployment/package.json index 7c0b3ff6fe..0f26382ce3 100644 --- a/addons/addon-base-post-deployment/packages/base-post-deployment/package.json +++ b/addons/addon-base-post-deployment/packages/base-post-deployment/package.json @@ -28,6 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas-ui/packages/base-raas-ui/.gitignore b/addons/addon-base-raas-ui/packages/base-raas-ui/.gitignore index d0c8522c94..aed9cc66cb 100644 --- a/addons/addon-base-raas-ui/packages/base-raas-ui/.gitignore +++ b/addons/addon-base-raas-ui/packages/base-raas-ui/.gitignore @@ -2,6 +2,7 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-raas-ui/packages/base-raas-ui/package.json b/addons/addon-base-raas-ui/packages/base-raas-ui/package.json index a02cf33947..91cc2e99e2 100644 --- a/addons/addon-base-raas-ui/packages/base-raas-ui/package.json +++ b/addons/addon-base-raas-ui/packages/base-raas-ui/package.json @@ -80,6 +80,7 @@ "regenerator-runtime": "^0.13.5" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "babel": "babel src/ --out-dir dist/ --source-maps", diff --git a/addons/addon-base-raas/packages/base-raas-cfn-templates/.gitignore b/addons/addon-base-raas/packages/base-raas-cfn-templates/.gitignore index e335658de1..a70972a230 100644 --- a/addons/addon-base-raas/packages/base-raas-cfn-templates/.gitignore +++ b/addons/addon-base-raas/packages/base-raas-cfn-templates/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-raas/packages/base-raas-cfn-templates/package.json b/addons/addon-base-raas/packages/base-raas-cfn-templates/package.json index fd77c2557e..adb4620efe 100644 --- a/addons/addon-base-raas/packages/base-raas-cfn-templates/package.json +++ b/addons/addon-base-raas/packages/base-raas-cfn-templates/package.json @@ -27,6 +27,7 @@ "babel:watch": "babel src/ --out-dir dist/ --source-maps --watch", "build": "pnpm run babel", "build:watch": "pnpm run babel:watch", + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-post-deployment/.gitignore b/addons/addon-base-raas/packages/base-raas-post-deployment/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base-raas/packages/base-raas-post-deployment/.gitignore +++ b/addons/addon-base-raas/packages/base-raas-post-deployment/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-raas/packages/base-raas-post-deployment/package.json b/addons/addon-base-raas/packages/base-raas-post-deployment/package.json index 295ed21be5..5084a84390 100644 --- a/addons/addon-base-raas/packages/base-raas-post-deployment/package.json +++ b/addons/addon-base-raas/packages/base-raas-post-deployment/package.json @@ -28,6 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-rest-api/.gitignore b/addons/addon-base-raas/packages/base-raas-rest-api/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base-raas/packages/base-raas-rest-api/.gitignore +++ b/addons/addon-base-raas/packages/base-raas-rest-api/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-raas/packages/base-raas-rest-api/package.json b/addons/addon-base-raas/packages/base-raas-rest-api/package.json index 3bbf03b84b..80c6710602 100644 --- a/addons/addon-base-raas/packages/base-raas-rest-api/package.json +++ b/addons/addon-base-raas/packages/base-raas-rest-api/package.json @@ -28,6 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-services/.gitignore b/addons/addon-base-raas/packages/base-raas-services/.gitignore index 6857fe8499..ec9d33bf2e 100644 --- a/addons/addon-base-raas/packages/base-raas-services/.gitignore +++ b/addons/addon-base-raas/packages/base-raas-services/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-raas/packages/base-raas-services/jest.config.js b/addons/addon-base-raas/packages/base-raas-services/jest.config.js index 60c221fc1d..589f305dbc 100644 --- a/addons/addon-base-raas/packages/base-raas-services/jest.config.js +++ b/addons/addon-base-raas/packages/base-raas-services/jest.config.js @@ -17,8 +17,7 @@ module.exports = { // verbose: true, notify: false, - testEnvironment: 'node', - // testPathIgnorePatterns: ['service.test.js'], + testEnvironment: 'node', // testPathIgnorePatterns: ['service.test.js'], // Configure JUnit reporter as CodeBuild currently only supports JUnit or Cucumber reports // See https://docs.aws.amazon.com/codebuild/latest/userguide/test-reporting.html reporters: ['default', ['jest-junit', { suiteName: 'jest tests', outputDirectory: './.build/test' }]], diff --git a/addons/addon-base-raas/packages/base-raas-services/lib/user/user-service.js b/addons/addon-base-raas/packages/base-raas-services/lib/user/user-service.js index d9d6774ad1..e148261624 100644 --- a/addons/addon-base-raas/packages/base-raas-services/lib/user/user-service.js +++ b/addons/addon-base-raas/packages/base-raas-services/lib/user/user-service.js @@ -112,6 +112,16 @@ class UserService extends BaseUserService { return super.updateUser(requestContext, user); } + async updateUser2(requestContext, user) { + if (user.userRole) { + const userType = await this.toUserType(requestContext, user.userRole); + + user.isExternalUser = userType === 'EXTERNAL'; + } + + return super.updateUser(requestContext, user); + } + async listUsers(requestContext, { fields = [] } = {}) { const users = await super.listUsers(requestContext, fields); diff --git a/addons/addon-base-raas/packages/base-raas-services/package.json b/addons/addon-base-raas/packages/base-raas-services/package.json index 5320023fd5..b134aada6c 100644 --- a/addons/addon-base-raas/packages/base-raas-services/package.json +++ b/addons/addon-base-raas/packages/base-raas-services/package.json @@ -33,7 +33,6 @@ "eslint-plugin-jest": "^22.21.0", "eslint-plugin-prettier": "^3.1.2", "@aws-ee/base-workflow-core": "workspace:*", - "@aws-ee/environment-type-mgmt-services": "workspace:*", "husky": "^3.1.0", "jest": "^24.9.0", "jest-junit": "^10.0.0", @@ -43,6 +42,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-workflow-steps/.gitignore b/addons/addon-base-raas/packages/base-raas-workflow-steps/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base-raas/packages/base-raas-workflow-steps/.gitignore +++ b/addons/addon-base-raas/packages/base-raas-workflow-steps/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-raas/packages/base-raas-workflow-steps/package.json b/addons/addon-base-raas/packages/base-raas-workflow-steps/package.json index 333d0ff811..9ab2b3394c 100644 --- a/addons/addon-base-raas/packages/base-raas-workflow-steps/package.json +++ b/addons/addon-base-raas/packages/base-raas-workflow-steps/package.json @@ -31,6 +31,7 @@ "aws-sdk-mock": "^5.1.0" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-workflows/.gitignore b/addons/addon-base-raas/packages/base-raas-workflows/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base-raas/packages/base-raas-workflows/.gitignore +++ b/addons/addon-base-raas/packages/base-raas-workflows/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-raas/packages/base-raas-workflows/package.json b/addons/addon-base-raas/packages/base-raas-workflows/package.json index 384c8e78ee..7acb1ffd2f 100644 --- a/addons/addon-base-raas/packages/base-raas-workflows/package.json +++ b/addons/addon-base-raas/packages/base-raas-workflows/package.json @@ -27,6 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/serverless-packer/.gitignore b/addons/addon-base-raas/packages/serverless-packer/.gitignore index 4db2263b12..5322756dc4 100644 --- a/addons/addon-base-raas/packages/serverless-packer/.gitignore +++ b/addons/addon-base-raas/packages/serverless-packer/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-raas/packages/serverless-packer/package.json b/addons/addon-base-raas/packages/serverless-packer/package.json index 59bf62eb78..6b1740496e 100644 --- a/addons/addon-base-raas/packages/serverless-packer/package.json +++ b/addons/addon-base-raas/packages/serverless-packer/package.json @@ -25,6 +25,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/api-handler-factory/.gitignore b/addons/addon-base-rest-api/packages/api-handler-factory/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base-rest-api/packages/api-handler-factory/.gitignore +++ b/addons/addon-base-rest-api/packages/api-handler-factory/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-rest-api/packages/api-handler-factory/package.json b/addons/addon-base-rest-api/packages/api-handler-factory/package.json index ec8ddf3d76..ff2011469a 100644 --- a/addons/addon-base-rest-api/packages/api-handler-factory/package.json +++ b/addons/addon-base-rest-api/packages/api-handler-factory/package.json @@ -31,6 +31,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/base-api-handler/.gitignore b/addons/addon-base-rest-api/packages/base-api-handler/.gitignore index 481db716f2..a6b6ec72ae 100644 --- a/addons/addon-base-rest-api/packages/base-api-handler/.gitignore +++ b/addons/addon-base-rest-api/packages/base-api-handler/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-rest-api/packages/base-api-handler/package.json b/addons/addon-base-rest-api/packages/base-api-handler/package.json index cac638b59b..6843de2fd7 100644 --- a/addons/addon-base-rest-api/packages/base-api-handler/package.json +++ b/addons/addon-base-rest-api/packages/base-api-handler/package.json @@ -28,6 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/base-authn-handler/.gitignore b/addons/addon-base-rest-api/packages/base-authn-handler/.gitignore index 481db716f2..a6b6ec72ae 100644 --- a/addons/addon-base-rest-api/packages/base-authn-handler/.gitignore +++ b/addons/addon-base-rest-api/packages/base-authn-handler/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-rest-api/packages/base-authn-handler/package.json b/addons/addon-base-rest-api/packages/base-authn-handler/package.json index b963ee3808..2fbc6299b1 100644 --- a/addons/addon-base-rest-api/packages/base-authn-handler/package.json +++ b/addons/addon-base-rest-api/packages/base-authn-handler/package.json @@ -28,6 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/base-controllers/.gitignore b/addons/addon-base-rest-api/packages/base-controllers/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base-rest-api/packages/base-controllers/.gitignore +++ b/addons/addon-base-rest-api/packages/base-controllers/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-rest-api/packages/base-controllers/package.json b/addons/addon-base-rest-api/packages/base-controllers/package.json index 374e77b2b5..8dc4c130dc 100644 --- a/addons/addon-base-rest-api/packages/base-controllers/package.json +++ b/addons/addon-base-rest-api/packages/base-controllers/package.json @@ -26,6 +26,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/services/.gitignore b/addons/addon-base-rest-api/packages/services/.gitignore index 6857fe8499..ec9d33bf2e 100644 --- a/addons/addon-base-rest-api/packages/services/.gitignore +++ b/addons/addon-base-rest-api/packages/services/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-rest-api/packages/services/package.json b/addons/addon-base-rest-api/packages/services/package.json index 8f4dc86f95..c848075ce1 100644 --- a/addons/addon-base-rest-api/packages/services/package.json +++ b/addons/addon-base-rest-api/packages/services/package.json @@ -35,6 +35,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-ui/packages/base-ui/.gitignore b/addons/addon-base-ui/packages/base-ui/.gitignore index d0c8522c94..aed9cc66cb 100644 --- a/addons/addon-base-ui/packages/base-ui/.gitignore +++ b/addons/addon-base-ui/packages/base-ui/.gitignore @@ -2,6 +2,7 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-ui/packages/base-ui/package.json b/addons/addon-base-ui/packages/base-ui/package.json index 386539a51c..a0e9f1a416 100644 --- a/addons/addon-base-ui/packages/base-ui/package.json +++ b/addons/addon-base-ui/packages/base-ui/package.json @@ -67,6 +67,7 @@ "webpack": "4.41.2" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "babel": "babel src/ --out-dir dist/ --source-maps", diff --git a/addons/addon-base-ui/packages/serverless-ui-tools/.gitignore b/addons/addon-base-ui/packages/serverless-ui-tools/.gitignore index 9bedf07f1a..4b77a369cb 100644 --- a/addons/addon-base-ui/packages/serverless-ui-tools/.gitignore +++ b/addons/addon-base-ui/packages/serverless-ui-tools/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-ui/packages/serverless-ui-tools/package.json b/addons/addon-base-ui/packages/serverless-ui-tools/package.json index 53f3940baa..c2e00d65b0 100644 --- a/addons/addon-base-ui/packages/serverless-ui-tools/package.json +++ b/addons/addon-base-ui/packages/serverless-ui-tools/package.json @@ -27,6 +27,7 @@ "pretty-quick": "^1.11.1" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow-api/packages/base-worklfow-api/.gitignore b/addons/addon-base-workflow-api/packages/base-worklfow-api/.gitignore index 9fc971c48e..0c3328389f 100644 --- a/addons/addon-base-workflow-api/packages/base-worklfow-api/.gitignore +++ b/addons/addon-base-workflow-api/packages/base-worklfow-api/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-workflow-api/packages/base-worklfow-api/package.json b/addons/addon-base-workflow-api/packages/base-worklfow-api/package.json index f48ee2d033..4589c1306f 100644 --- a/addons/addon-base-workflow-api/packages/base-worklfow-api/package.json +++ b/addons/addon-base-workflow-api/packages/base-worklfow-api/package.json @@ -27,6 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow-ui/packages/base-workflow-ui/.gitignore b/addons/addon-base-workflow-ui/packages/base-workflow-ui/.gitignore index d0c8522c94..aed9cc66cb 100644 --- a/addons/addon-base-workflow-ui/packages/base-workflow-ui/.gitignore +++ b/addons/addon-base-workflow-ui/packages/base-workflow-ui/.gitignore @@ -2,6 +2,7 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-workflow/packages/base-workflow-core/.gitignore b/addons/addon-base-workflow/packages/base-workflow-core/.gitignore index 9fc971c48e..0c3328389f 100644 --- a/addons/addon-base-workflow/packages/base-workflow-core/.gitignore +++ b/addons/addon-base-workflow/packages/base-workflow-core/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-workflow/packages/base-workflow-core/package.json b/addons/addon-base-workflow/packages/base-workflow-core/package.json index 7af82c6271..1884253a2d 100644 --- a/addons/addon-base-workflow/packages/base-workflow-core/package.json +++ b/addons/addon-base-workflow/packages/base-workflow-core/package.json @@ -29,6 +29,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow/packages/base-workflow-templates/.gitignore b/addons/addon-base-workflow/packages/base-workflow-templates/.gitignore index 9fc971c48e..0c3328389f 100644 --- a/addons/addon-base-workflow/packages/base-workflow-templates/.gitignore +++ b/addons/addon-base-workflow/packages/base-workflow-templates/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-workflow/packages/base-workflow-templates/package.json b/addons/addon-base-workflow/packages/base-workflow-templates/package.json index 70dcd49038..e20c1c4fc9 100644 --- a/addons/addon-base-workflow/packages/base-workflow-templates/package.json +++ b/addons/addon-base-workflow/packages/base-workflow-templates/package.json @@ -27,6 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow/packages/base-worklfow-steps/.gitignore b/addons/addon-base-workflow/packages/base-worklfow-steps/.gitignore index 9fc971c48e..0c3328389f 100644 --- a/addons/addon-base-workflow/packages/base-worklfow-steps/.gitignore +++ b/addons/addon-base-workflow/packages/base-worklfow-steps/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-workflow/packages/base-worklfow-steps/package.json b/addons/addon-base-workflow/packages/base-worklfow-steps/package.json index ec44adb346..229795b430 100644 --- a/addons/addon-base-workflow/packages/base-worklfow-steps/package.json +++ b/addons/addon-base-workflow/packages/base-worklfow-steps/package.json @@ -27,6 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow/packages/workflow-engine/.gitignore b/addons/addon-base-workflow/packages/workflow-engine/.gitignore index 9fc971c48e..0c3328389f 100644 --- a/addons/addon-base-workflow/packages/workflow-engine/.gitignore +++ b/addons/addon-base-workflow/packages/workflow-engine/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base-workflow/packages/workflow-engine/package.json b/addons/addon-base-workflow/packages/workflow-engine/package.json index d07c55e0fd..a6f60c2368 100644 --- a/addons/addon-base-workflow/packages/workflow-engine/package.json +++ b/addons/addon-base-workflow/packages/workflow-engine/package.json @@ -25,6 +25,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base/packages/serverless-backend-tools/.gitignore b/addons/addon-base/packages/serverless-backend-tools/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base/packages/serverless-backend-tools/.gitignore +++ b/addons/addon-base/packages/serverless-backend-tools/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base/packages/serverless-backend-tools/package.json b/addons/addon-base/packages/serverless-backend-tools/package.json index 90f075f666..4daf7eb86a 100644 --- a/addons/addon-base/packages/serverless-backend-tools/package.json +++ b/addons/addon-base/packages/serverless-backend-tools/package.json @@ -27,6 +27,7 @@ "pretty-quick": "^1.11.1" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base/packages/serverless-go-build-tools/.gitignore b/addons/addon-base/packages/serverless-go-build-tools/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base/packages/serverless-go-build-tools/.gitignore +++ b/addons/addon-base/packages/serverless-go-build-tools/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base/packages/serverless-go-build-tools/package.json b/addons/addon-base/packages/serverless-go-build-tools/package.json index c8c6f8208f..06a8c01485 100644 --- a/addons/addon-base/packages/serverless-go-build-tools/package.json +++ b/addons/addon-base/packages/serverless-go-build-tools/package.json @@ -27,6 +27,7 @@ "pretty-quick": "^1.11.1" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base/packages/serverless-settings-helper/package.json b/addons/addon-base/packages/serverless-settings-helper/package.json index 673d978a42..7be1f0068e 100644 --- a/addons/addon-base/packages/serverless-settings-helper/package.json +++ b/addons/addon-base/packages/serverless-settings-helper/package.json @@ -32,6 +32,7 @@ "serverless": "^1.63.0" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "prepublishOnly": "pnpm run test", diff --git a/addons/addon-base/packages/services-container/.gitignore b/addons/addon-base/packages/services-container/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-base/packages/services-container/.gitignore +++ b/addons/addon-base/packages/services-container/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base/packages/services-container/package.json b/addons/addon-base/packages/services-container/package.json index deae62dac4..cf17826ad5 100644 --- a/addons/addon-base/packages/services-container/package.json +++ b/addons/addon-base/packages/services-container/package.json @@ -30,6 +30,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base/packages/services/.gitignore b/addons/addon-base/packages/services/.gitignore index 6857fe8499..ec9d33bf2e 100644 --- a/addons/addon-base/packages/services/.gitignore +++ b/addons/addon-base/packages/services/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-base/packages/services/package.json b/addons/addon-base/packages/services/package.json index b729b6f130..eec5fa9777 100644 --- a/addons/addon-base/packages/services/package.json +++ b/addons/addon-base/packages/services/package.json @@ -36,6 +36,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/.gitignore b/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/.gitignore +++ b/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/package.json b/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/package.json index 57825bc3d7..c3d61df2f7 100644 --- a/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/package.json +++ b/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/package.json @@ -31,6 +31,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-api/packages/environment-sc-workflows/.gitignore b/addons/addon-environment-sc-api/packages/environment-sc-workflows/.gitignore index 835ef66f0f..0459c8b72c 100644 --- a/addons/addon-environment-sc-api/packages/environment-sc-workflows/.gitignore +++ b/addons/addon-environment-sc-api/packages/environment-sc-workflows/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-environment-sc-api/packages/environment-sc-workflows/package.json b/addons/addon-environment-sc-api/packages/environment-sc-workflows/package.json index 4ab9bc5f68..a3d7d27f9c 100644 --- a/addons/addon-environment-sc-api/packages/environment-sc-workflows/package.json +++ b/addons/addon-environment-sc-api/packages/environment-sc-workflows/package.json @@ -27,6 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/.gitignore b/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/.gitignore index 6857fe8499..ec9d33bf2e 100644 --- a/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/.gitignore +++ b/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/package.json b/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/package.json index 51f99c3161..a45f239676 100644 --- a/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/package.json +++ b/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/package.json @@ -27,6 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/.gitignore b/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/.gitignore index 6857fe8499..ec9d33bf2e 100644 --- a/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/.gitignore +++ b/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/package.json b/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/package.json index af61a28f79..c410d6e81e 100644 --- a/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/package.json +++ b/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/package.json @@ -27,6 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/.gitignore b/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/.gitignore index d0c8522c94..aed9cc66cb 100644 --- a/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/.gitignore +++ b/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/.gitignore @@ -2,6 +2,7 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/package.json b/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/package.json index d6c06e2eb6..56bb4f93b4 100644 --- a/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/package.json +++ b/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/package.json @@ -49,6 +49,7 @@ "pretty-quick": "^1.11.1" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "babel": "babel src/ --out-dir dist/ --source-maps", diff --git a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/.gitignore b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/.gitignore index 6857fe8499..ec9d33bf2e 100644 --- a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/.gitignore +++ b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/package.json b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/package.json index 1b27fdc8da..382527961c 100644 --- a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/package.json +++ b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/package.json @@ -27,6 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/.gitignore b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/.gitignore index 6857fe8499..ec9d33bf2e 100644 --- a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/.gitignore +++ b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/package.json b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/package.json index f25b3e4be2..acb89b8361 100644 --- a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/package.json +++ b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/package.json @@ -28,6 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-key-pair-mgmt-ui/packages/key-pair-mgmt-ui/.gitignore b/addons/addon-key-pair-mgmt-ui/packages/key-pair-mgmt-ui/.gitignore index d0c8522c94..aed9cc66cb 100644 --- a/addons/addon-key-pair-mgmt-ui/packages/key-pair-mgmt-ui/.gitignore +++ b/addons/addon-key-pair-mgmt-ui/packages/key-pair-mgmt-ui/.gitignore @@ -2,6 +2,7 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-raas-s3-copy/packages/s3-synchronizer/.gitignore b/addons/addon-raas-s3-copy/packages/s3-synchronizer/.gitignore index 480cad9629..437f72b2a3 100644 --- a/addons/addon-raas-s3-copy/packages/s3-synchronizer/.gitignore +++ b/addons/addon-raas-s3-copy/packages/s3-synchronizer/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/.gitignore b/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/.gitignore index d0c8522c94..aed9cc66cb 100644 --- a/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/.gitignore +++ b/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/.gitignore @@ -2,6 +2,7 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/package.json b/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/package.json index 40b46d5ee2..f340a5b922 100644 --- a/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/package.json +++ b/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/package.json @@ -28,6 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..2efcd54115 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,40 @@ +coverage: + round: down + precision: 2 + status: + project: + default: + # basic + target: auto + threshold: 0% + base: auto + # advanced settings + if_ci_failed: error #success, failure, error, ignore + informational: false + only_pulls: false + patch: + default: + # basic + target: auto + threshold: 0% + base: auto + # advanced settings + if_ci_failed: error #success, failure, error, ignore + informational: false + only_pulls: false + +codecov: + require_ci_to_pass: yes + +parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no + +comment: + layout: "reach,diff,flags,files,footer" + behavior: default + require_changes: no diff --git a/docs/package.json b/docs/package.json index 576fec46fb..64ba8dbec1 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,8 +1,7 @@ { "name": "service-workbench-docusaurus", "version": "0.0.8", - "private": true, - "scripts": { + "private": true,"scripts": { "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", diff --git a/main/cicd/.gitignore b/main/cicd/.gitignore index 6cd0624375..1c84626e38 100644 --- a/main/cicd/.gitignore +++ b/main/cicd/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/end-to-end-tests/package.json b/main/end-to-end-tests/package.json index 9c680bd66e..d7bcc472f8 100644 --- a/main/end-to-end-tests/package.json +++ b/main/end-to-end-tests/package.json @@ -4,8 +4,7 @@ "private": true, "description": "End to end tests for the base-poc solution", "author": "Amazon Web Services", - "license": "Apache-2.0", - "scripts": { + "license": "Apache-2.0","scripts": { "cypress:open:local": "cypress open -C cypress.local.json", "cypress:open:dev": "cypress open -C cypress.dev.json", "cypress:run-tests:local": "cypress run -C cypress.local.json", diff --git a/main/integration-tests/.gitignore b/main/integration-tests/.gitignore index 636d985a14..7c41e3f856 100644 --- a/main/integration-tests/.gitignore +++ b/main/integration-tests/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/integration-tests/jest.config.js b/main/integration-tests/jest.config.js index e668425446..0e1fc2b492 100644 --- a/main/integration-tests/jest.config.js +++ b/main/integration-tests/jest.config.js @@ -101,6 +101,8 @@ module.exports = async () => { verbose: false, notify: false, testEnvironment: 'node', + + collectCoverage: true, testTimeout: 60 * 60 * 1000, // testPathIgnorePatterns: [], diff --git a/main/integration-tests/package.json b/main/integration-tests/package.json index afd4d52271..df5c3b58f4 100644 --- a/main/integration-tests/package.json +++ b/main/integration-tests/package.json @@ -4,10 +4,9 @@ "private": true, "description": "Integration tests for the base-poc solution", "author": "Amazon Web Services", - "license": "Apache-2.0", - "scripts": { - "intTest": "NODE_ENV=test jest --testRunner='jest-circus/runner' --config jest.config.js --passWithNoTests", - "intTestWatch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", + "license": "Apache-2.0","scripts": { + "intTest": "NODE_ENV=test jest --testRunner='jest-circus/runner' --config jest.config.js --passWithNoTests --verbose", + "intTestWatch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", "lint:eslint": "eslint --ignore-path .gitignore . ", "lint:prettier": "prettier --check --ignore-path .gitignore '**/*.{js,jsx}' ", diff --git a/main/packages/.gitignore b/main/packages/.gitignore index 759beec1ae..e3e839d431 100644 --- a/main/packages/.gitignore +++ b/main/packages/.gitignore @@ -2,6 +2,7 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/packages/controllers/.gitignore b/main/packages/controllers/.gitignore index 9fc971c48e..0c3328389f 100644 --- a/main/packages/controllers/.gitignore +++ b/main/packages/controllers/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/packages/controllers/package.json b/main/packages/controllers/package.json index 10cdf5282b..1c891aaccc 100644 --- a/main/packages/controllers/package.json +++ b/main/packages/controllers/package.json @@ -26,6 +26,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/main/packages/services/.gitignore b/main/packages/services/.gitignore index 9fc971c48e..0c3328389f 100644 --- a/main/packages/services/.gitignore +++ b/main/packages/services/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/packages/services/package.json b/main/packages/services/package.json index 96ed7694e8..585193839b 100644 --- a/main/packages/services/package.json +++ b/main/packages/services/package.json @@ -26,6 +26,7 @@ "source-map-support": "^0.5.16" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/main/solution/.gitignore b/main/solution/.gitignore index 1a2b93fd17..eceb4b237a 100644 --- a/main/solution/.gitignore +++ b/main/solution/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/backend/.gitignore b/main/solution/backend/.gitignore index 6ba5ea0787..3cb83ef8e1 100644 --- a/main/solution/backend/.gitignore +++ b/main/solution/backend/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/backend/package.json b/main/solution/backend/package.json index e1d0eb8bc0..7354cf0d38 100644 --- a/main/solution/backend/package.json +++ b/main/solution/backend/package.json @@ -78,6 +78,7 @@ } }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "start-debug": "node --inspect node_modules/.bin/serverless offline start", diff --git a/main/solution/edge-lambda/.gitignore b/main/solution/edge-lambda/.gitignore index 053ed37059..f7db82bc5f 100644 --- a/main/solution/edge-lambda/.gitignore +++ b/main/solution/edge-lambda/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/environment-tools/.gitignore b/main/solution/environment-tools/.gitignore index 053ed37059..f7db82bc5f 100644 --- a/main/solution/environment-tools/.gitignore +++ b/main/solution/environment-tools/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/infrastructure/.gitignore b/main/solution/infrastructure/.gitignore index 8518222ab0..5d22bbf333 100644 --- a/main/solution/infrastructure/.gitignore +++ b/main/solution/infrastructure/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/machine-images/.gitignore b/main/solution/machine-images/.gitignore index 028e0de5c6..f2d3f78d32 100644 --- a/main/solution/machine-images/.gitignore +++ b/main/solution/machine-images/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/post-deployment/.gitignore b/main/solution/post-deployment/.gitignore index 0b77b2a8b7..076052c1fa 100644 --- a/main/solution/post-deployment/.gitignore +++ b/main/solution/post-deployment/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/post-deployment/package.json b/main/solution/post-deployment/package.json index 4228845cea..a024340991 100644 --- a/main/solution/post-deployment/package.json +++ b/main/solution/post-deployment/package.json @@ -56,6 +56,7 @@ "webpack": "^4.41.5" }, "scripts": { + "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/main/solution/prepare-master-acc/.gitignore b/main/solution/prepare-master-acc/.gitignore index 053ed37059..f7db82bc5f 100644 --- a/main/solution/prepare-master-acc/.gitignore +++ b/main/solution/prepare-master-acc/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/ui/.gitignore b/main/solution/ui/.gitignore index 1a0b998b35..d137abf5ed 100644 --- a/main/solution/ui/.gitignore +++ b/main/solution/ui/.gitignore @@ -2,6 +2,7 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/main/solution/ui/package.json b/main/solution/ui/package.json index 86af8b560a..092b61f672 100644 --- a/main/solution/ui/package.json +++ b/main/solution/ui/package.json @@ -64,8 +64,8 @@ "scripts": { "start": "react-scripts start", "build": "INLINE_RUNTIME_CHUNK=false react-scripts build", - "test": "react-scripts test --watchAll=false --passWithNoTests", - "test:watch": "react-scripts test --passWithNoTests", + "test": "react-scripts test --watchAll=false --passWithNoTests --verbose --coverage", + "test:watch": "react-scripts test --passWithNoTests --verbose --coverage", "eject": "react-scripts eject", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", "lint:eslint": "eslint --ignore-path .gitignore . ", diff --git a/scripts/load-test-workspaces/.gitignore b/scripts/load-test-workspaces/.gitignore index eb014233c9..eeb494720a 100644 --- a/scripts/load-test-workspaces/.gitignore +++ b/scripts/load-test-workspaces/.gitignore @@ -1,5 +1,6 @@ **/.class **/.DS_Store +**/coverage **/node_modules **/npm-debug.log diff --git a/scripts/run-unit-tests-github.sh b/scripts/run-unit-tests-github.sh new file mode 100755 index 0000000000..06359e266c --- /dev/null +++ b/scripts/run-unit-tests-github.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +pnpm run test-gh --recursive --if-present $@ \ No newline at end of file From 67c08735754edae0fcf815315ac45401834dae49 Mon Sep 17 00:00:00 2001 From: SanketD92 Date: Thu, 22 Apr 2021 13:03:09 -0400 Subject: [PATCH 2/4] feat: adding back static code analysis --- .github/workflows/unit-test-code-analysis.yml | 3 +++ .../packages/base-raas-services/jest.config.js | 3 ++- .../base-raas-services/lib/user/user-service.js | 10 ---------- docs/package.json | 3 ++- main/end-to-end-tests/package.json | 3 ++- main/integration-tests/jest.config.js | 2 -- main/integration-tests/package.json | 3 ++- 7 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/unit-test-code-analysis.yml b/.github/workflows/unit-test-code-analysis.yml index f2e7fe9018..8b083d9e76 100644 --- a/.github/workflows/unit-test-code-analysis.yml +++ b/.github/workflows/unit-test-code-analysis.yml @@ -33,6 +33,9 @@ jobs: npm install -g pnpm npm install -g codecov pnpm recursive install --unsafe-perm --stream + - name: Run static code analysis & linting tests + run: | + ./scripts/run-static-code-analysis.sh --stream - name: Run unit tests run: | ./scripts/run-unit-tests-github.sh --stream diff --git a/addons/addon-base-raas/packages/base-raas-services/jest.config.js b/addons/addon-base-raas/packages/base-raas-services/jest.config.js index 589f305dbc..60c221fc1d 100644 --- a/addons/addon-base-raas/packages/base-raas-services/jest.config.js +++ b/addons/addon-base-raas/packages/base-raas-services/jest.config.js @@ -17,7 +17,8 @@ module.exports = { // verbose: true, notify: false, - testEnvironment: 'node', // testPathIgnorePatterns: ['service.test.js'], + testEnvironment: 'node', + // testPathIgnorePatterns: ['service.test.js'], // Configure JUnit reporter as CodeBuild currently only supports JUnit or Cucumber reports // See https://docs.aws.amazon.com/codebuild/latest/userguide/test-reporting.html reporters: ['default', ['jest-junit', { suiteName: 'jest tests', outputDirectory: './.build/test' }]], diff --git a/addons/addon-base-raas/packages/base-raas-services/lib/user/user-service.js b/addons/addon-base-raas/packages/base-raas-services/lib/user/user-service.js index e148261624..d9d6774ad1 100644 --- a/addons/addon-base-raas/packages/base-raas-services/lib/user/user-service.js +++ b/addons/addon-base-raas/packages/base-raas-services/lib/user/user-service.js @@ -112,16 +112,6 @@ class UserService extends BaseUserService { return super.updateUser(requestContext, user); } - async updateUser2(requestContext, user) { - if (user.userRole) { - const userType = await this.toUserType(requestContext, user.userRole); - - user.isExternalUser = userType === 'EXTERNAL'; - } - - return super.updateUser(requestContext, user); - } - async listUsers(requestContext, { fields = [] } = {}) { const users = await super.listUsers(requestContext, fields); diff --git a/docs/package.json b/docs/package.json index 64ba8dbec1..576fec46fb 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,7 +1,8 @@ { "name": "service-workbench-docusaurus", "version": "0.0.8", - "private": true,"scripts": { + "private": true, + "scripts": { "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", diff --git a/main/end-to-end-tests/package.json b/main/end-to-end-tests/package.json index d7bcc472f8..9c680bd66e 100644 --- a/main/end-to-end-tests/package.json +++ b/main/end-to-end-tests/package.json @@ -4,7 +4,8 @@ "private": true, "description": "End to end tests for the base-poc solution", "author": "Amazon Web Services", - "license": "Apache-2.0","scripts": { + "license": "Apache-2.0", + "scripts": { "cypress:open:local": "cypress open -C cypress.local.json", "cypress:open:dev": "cypress open -C cypress.dev.json", "cypress:run-tests:local": "cypress run -C cypress.local.json", diff --git a/main/integration-tests/jest.config.js b/main/integration-tests/jest.config.js index 0e1fc2b492..e668425446 100644 --- a/main/integration-tests/jest.config.js +++ b/main/integration-tests/jest.config.js @@ -101,8 +101,6 @@ module.exports = async () => { verbose: false, notify: false, testEnvironment: 'node', - - collectCoverage: true, testTimeout: 60 * 60 * 1000, // testPathIgnorePatterns: [], diff --git a/main/integration-tests/package.json b/main/integration-tests/package.json index df5c3b58f4..798724c1c8 100644 --- a/main/integration-tests/package.json +++ b/main/integration-tests/package.json @@ -4,7 +4,8 @@ "private": true, "description": "Integration tests for the base-poc solution", "author": "Amazon Web Services", - "license": "Apache-2.0","scripts": { + "license": "Apache-2.0", + "scripts": { "intTest": "NODE_ENV=test jest --testRunner='jest-circus/runner' --config jest.config.js --passWithNoTests --verbose", "intTestWatch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", From 249db2e052deac96f6c88edaf00f04b574e35f1a Mon Sep 17 00:00:00 2001 From: SanketD92 Date: Thu, 22 Apr 2021 14:19:43 -0400 Subject: [PATCH 3/4] coverage instead of test-gh --- .github/workflows/unit-test-code-analysis.yml | 2 +- .../packages/base-post-deployment/package.json | 2 +- addons/addon-base-raas-ui/packages/base-raas-ui/package.json | 2 +- .../packages/base-raas-cfn-templates/package.json | 2 +- .../packages/base-raas-post-deployment/package.json | 2 +- addons/addon-base-raas/packages/base-raas-rest-api/package.json | 2 +- addons/addon-base-raas/packages/base-raas-services/package.json | 2 +- .../packages/base-raas-workflow-steps/package.json | 2 +- .../addon-base-raas/packages/base-raas-workflows/package.json | 2 +- addons/addon-base-raas/packages/serverless-packer/package.json | 2 +- .../packages/api-handler-factory/package.json | 2 +- .../addon-base-rest-api/packages/base-api-handler/package.json | 2 +- .../packages/base-authn-handler/package.json | 2 +- .../addon-base-rest-api/packages/base-controllers/package.json | 2 +- addons/addon-base-rest-api/packages/services/package.json | 2 +- addons/addon-base-ui/packages/base-ui/package.json | 2 +- addons/addon-base-ui/packages/serverless-ui-tools/package.json | 2 +- .../packages/base-worklfow-api/package.json | 2 +- .../packages/base-workflow-core/package.json | 2 +- .../packages/base-workflow-templates/package.json | 2 +- .../packages/base-worklfow-steps/package.json | 2 +- .../addon-base-workflow/packages/workflow-engine/package.json | 2 +- .../addon-base/packages/serverless-backend-tools/package.json | 2 +- .../addon-base/packages/serverless-go-build-tools/package.json | 2 +- .../addon-base/packages/serverless-settings-helper/package.json | 2 +- addons/addon-base/packages/services-container/package.json | 2 +- addons/addon-base/packages/services/package.json | 2 +- .../packages/environment-sc-workflow-steps/package.json | 2 +- .../packages/environment-sc-workflows/package.json | 2 +- .../packages/environment-type-mgmt-api/package.json | 2 +- .../packages/environment-type-mgmt-services/package.json | 2 +- .../packages/environment-type-mgmt-ui/package.json | 2 +- .../packages/key-pair-mgmt-api/package.json | 2 +- .../packages/key-pair-mgmt-services/package.json | 2 +- .../packages/user-id-upgrade-post-deployment/package.json | 2 +- main/packages/controllers/package.json | 2 +- main/packages/services/package.json | 2 +- main/solution/backend/package.json | 2 +- main/solution/post-deployment/package.json | 2 +- scripts/run-unit-tests-github.sh | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/unit-test-code-analysis.yml b/.github/workflows/unit-test-code-analysis.yml index 8b083d9e76..30654d4108 100644 --- a/.github/workflows/unit-test-code-analysis.yml +++ b/.github/workflows/unit-test-code-analysis.yml @@ -38,7 +38,7 @@ jobs: ./scripts/run-static-code-analysis.sh --stream - name: Run unit tests run: | - ./scripts/run-unit-tests-github.sh --stream + pnpm run coverage --recursive --if-present --stream - name: CodeCov uses: codecov/codecov-action@v1 with: diff --git a/addons/addon-base-post-deployment/packages/base-post-deployment/package.json b/addons/addon-base-post-deployment/packages/base-post-deployment/package.json index 0f26382ce3..b700079c7d 100644 --- a/addons/addon-base-post-deployment/packages/base-post-deployment/package.json +++ b/addons/addon-base-post-deployment/packages/base-post-deployment/package.json @@ -28,7 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas-ui/packages/base-raas-ui/package.json b/addons/addon-base-raas-ui/packages/base-raas-ui/package.json index 91cc2e99e2..218f27c4d8 100644 --- a/addons/addon-base-raas-ui/packages/base-raas-ui/package.json +++ b/addons/addon-base-raas-ui/packages/base-raas-ui/package.json @@ -80,7 +80,7 @@ "regenerator-runtime": "^0.13.5" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "babel": "babel src/ --out-dir dist/ --source-maps", diff --git a/addons/addon-base-raas/packages/base-raas-cfn-templates/package.json b/addons/addon-base-raas/packages/base-raas-cfn-templates/package.json index adb4620efe..1e1dcca82d 100644 --- a/addons/addon-base-raas/packages/base-raas-cfn-templates/package.json +++ b/addons/addon-base-raas/packages/base-raas-cfn-templates/package.json @@ -27,7 +27,7 @@ "babel:watch": "babel src/ --out-dir dist/ --source-maps --watch", "build": "pnpm run babel", "build:watch": "pnpm run babel:watch", - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-post-deployment/package.json b/addons/addon-base-raas/packages/base-raas-post-deployment/package.json index 5084a84390..4dced91f6f 100644 --- a/addons/addon-base-raas/packages/base-raas-post-deployment/package.json +++ b/addons/addon-base-raas/packages/base-raas-post-deployment/package.json @@ -28,7 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-rest-api/package.json b/addons/addon-base-raas/packages/base-raas-rest-api/package.json index 80c6710602..27e83f1f47 100644 --- a/addons/addon-base-raas/packages/base-raas-rest-api/package.json +++ b/addons/addon-base-raas/packages/base-raas-rest-api/package.json @@ -28,7 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-services/package.json b/addons/addon-base-raas/packages/base-raas-services/package.json index b134aada6c..1486e2de55 100644 --- a/addons/addon-base-raas/packages/base-raas-services/package.json +++ b/addons/addon-base-raas/packages/base-raas-services/package.json @@ -42,7 +42,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-workflow-steps/package.json b/addons/addon-base-raas/packages/base-raas-workflow-steps/package.json index 9ab2b3394c..460676b4a5 100644 --- a/addons/addon-base-raas/packages/base-raas-workflow-steps/package.json +++ b/addons/addon-base-raas/packages/base-raas-workflow-steps/package.json @@ -31,7 +31,7 @@ "aws-sdk-mock": "^5.1.0" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/base-raas-workflows/package.json b/addons/addon-base-raas/packages/base-raas-workflows/package.json index 7acb1ffd2f..5dde2d2ed6 100644 --- a/addons/addon-base-raas/packages/base-raas-workflows/package.json +++ b/addons/addon-base-raas/packages/base-raas-workflows/package.json @@ -27,7 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-raas/packages/serverless-packer/package.json b/addons/addon-base-raas/packages/serverless-packer/package.json index 6b1740496e..57847dd898 100644 --- a/addons/addon-base-raas/packages/serverless-packer/package.json +++ b/addons/addon-base-raas/packages/serverless-packer/package.json @@ -25,7 +25,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/api-handler-factory/package.json b/addons/addon-base-rest-api/packages/api-handler-factory/package.json index ff2011469a..218015ae53 100644 --- a/addons/addon-base-rest-api/packages/api-handler-factory/package.json +++ b/addons/addon-base-rest-api/packages/api-handler-factory/package.json @@ -31,7 +31,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/base-api-handler/package.json b/addons/addon-base-rest-api/packages/base-api-handler/package.json index 6843de2fd7..f4c0695732 100644 --- a/addons/addon-base-rest-api/packages/base-api-handler/package.json +++ b/addons/addon-base-rest-api/packages/base-api-handler/package.json @@ -28,7 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/base-authn-handler/package.json b/addons/addon-base-rest-api/packages/base-authn-handler/package.json index 2fbc6299b1..7c37aa1ecc 100644 --- a/addons/addon-base-rest-api/packages/base-authn-handler/package.json +++ b/addons/addon-base-rest-api/packages/base-authn-handler/package.json @@ -28,7 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/base-controllers/package.json b/addons/addon-base-rest-api/packages/base-controllers/package.json index 8dc4c130dc..40b3ec4ba1 100644 --- a/addons/addon-base-rest-api/packages/base-controllers/package.json +++ b/addons/addon-base-rest-api/packages/base-controllers/package.json @@ -26,7 +26,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-rest-api/packages/services/package.json b/addons/addon-base-rest-api/packages/services/package.json index c848075ce1..25b480fac1 100644 --- a/addons/addon-base-rest-api/packages/services/package.json +++ b/addons/addon-base-rest-api/packages/services/package.json @@ -35,7 +35,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-ui/packages/base-ui/package.json b/addons/addon-base-ui/packages/base-ui/package.json index a0e9f1a416..31e5c4015d 100644 --- a/addons/addon-base-ui/packages/base-ui/package.json +++ b/addons/addon-base-ui/packages/base-ui/package.json @@ -67,7 +67,7 @@ "webpack": "4.41.2" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "babel": "babel src/ --out-dir dist/ --source-maps", diff --git a/addons/addon-base-ui/packages/serverless-ui-tools/package.json b/addons/addon-base-ui/packages/serverless-ui-tools/package.json index c2e00d65b0..449e9acdf2 100644 --- a/addons/addon-base-ui/packages/serverless-ui-tools/package.json +++ b/addons/addon-base-ui/packages/serverless-ui-tools/package.json @@ -27,7 +27,7 @@ "pretty-quick": "^1.11.1" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow-api/packages/base-worklfow-api/package.json b/addons/addon-base-workflow-api/packages/base-worklfow-api/package.json index 4589c1306f..9574d254df 100644 --- a/addons/addon-base-workflow-api/packages/base-worklfow-api/package.json +++ b/addons/addon-base-workflow-api/packages/base-worklfow-api/package.json @@ -27,7 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow/packages/base-workflow-core/package.json b/addons/addon-base-workflow/packages/base-workflow-core/package.json index 1884253a2d..1114dca9dd 100644 --- a/addons/addon-base-workflow/packages/base-workflow-core/package.json +++ b/addons/addon-base-workflow/packages/base-workflow-core/package.json @@ -29,7 +29,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow/packages/base-workflow-templates/package.json b/addons/addon-base-workflow/packages/base-workflow-templates/package.json index e20c1c4fc9..22f296ace1 100644 --- a/addons/addon-base-workflow/packages/base-workflow-templates/package.json +++ b/addons/addon-base-workflow/packages/base-workflow-templates/package.json @@ -27,7 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow/packages/base-worklfow-steps/package.json b/addons/addon-base-workflow/packages/base-worklfow-steps/package.json index 229795b430..952441acca 100644 --- a/addons/addon-base-workflow/packages/base-worklfow-steps/package.json +++ b/addons/addon-base-workflow/packages/base-worklfow-steps/package.json @@ -27,7 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base-workflow/packages/workflow-engine/package.json b/addons/addon-base-workflow/packages/workflow-engine/package.json index a6f60c2368..cd043a9982 100644 --- a/addons/addon-base-workflow/packages/workflow-engine/package.json +++ b/addons/addon-base-workflow/packages/workflow-engine/package.json @@ -25,7 +25,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base/packages/serverless-backend-tools/package.json b/addons/addon-base/packages/serverless-backend-tools/package.json index 4daf7eb86a..2e107b91b9 100644 --- a/addons/addon-base/packages/serverless-backend-tools/package.json +++ b/addons/addon-base/packages/serverless-backend-tools/package.json @@ -27,7 +27,7 @@ "pretty-quick": "^1.11.1" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base/packages/serverless-go-build-tools/package.json b/addons/addon-base/packages/serverless-go-build-tools/package.json index 06a8c01485..d864925b1c 100644 --- a/addons/addon-base/packages/serverless-go-build-tools/package.json +++ b/addons/addon-base/packages/serverless-go-build-tools/package.json @@ -27,7 +27,7 @@ "pretty-quick": "^1.11.1" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base/packages/serverless-settings-helper/package.json b/addons/addon-base/packages/serverless-settings-helper/package.json index 7be1f0068e..5d9330a344 100644 --- a/addons/addon-base/packages/serverless-settings-helper/package.json +++ b/addons/addon-base/packages/serverless-settings-helper/package.json @@ -32,7 +32,7 @@ "serverless": "^1.63.0" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "prepublishOnly": "pnpm run test", diff --git a/addons/addon-base/packages/services-container/package.json b/addons/addon-base/packages/services-container/package.json index cf17826ad5..5bc71a2f5a 100644 --- a/addons/addon-base/packages/services-container/package.json +++ b/addons/addon-base/packages/services-container/package.json @@ -30,7 +30,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-base/packages/services/package.json b/addons/addon-base/packages/services/package.json index eec5fa9777..94e18972b8 100644 --- a/addons/addon-base/packages/services/package.json +++ b/addons/addon-base/packages/services/package.json @@ -36,7 +36,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/package.json b/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/package.json index c3d61df2f7..438c56947b 100644 --- a/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/package.json +++ b/addons/addon-environment-sc-api/packages/environment-sc-workflow-steps/package.json @@ -31,7 +31,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-api/packages/environment-sc-workflows/package.json b/addons/addon-environment-sc-api/packages/environment-sc-workflows/package.json index a3d7d27f9c..7b17cb8eef 100644 --- a/addons/addon-environment-sc-api/packages/environment-sc-workflows/package.json +++ b/addons/addon-environment-sc-api/packages/environment-sc-workflows/package.json @@ -27,7 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/package.json b/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/package.json index a45f239676..65f47db788 100644 --- a/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/package.json +++ b/addons/addon-environment-sc-api/packages/environment-type-mgmt-api/package.json @@ -27,7 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/package.json b/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/package.json index c410d6e81e..dbfc67bc0f 100644 --- a/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/package.json +++ b/addons/addon-environment-sc-api/packages/environment-type-mgmt-services/package.json @@ -27,7 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/package.json b/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/package.json index 56bb4f93b4..fa57cd6a0d 100644 --- a/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/package.json +++ b/addons/addon-environment-sc-ui/packages/environment-type-mgmt-ui/package.json @@ -49,7 +49,7 @@ "pretty-quick": "^1.11.1" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "babel": "babel src/ --out-dir dist/ --source-maps", diff --git a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/package.json b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/package.json index 382527961c..1bee7aaa8b 100644 --- a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/package.json +++ b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-api/package.json @@ -27,7 +27,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/package.json b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/package.json index acb89b8361..1e7cdfd46a 100644 --- a/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/package.json +++ b/addons/addon-key-pair-mgmt-api/packages/key-pair-mgmt-services/package.json @@ -28,7 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/package.json b/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/package.json index f340a5b922..0784176ac9 100644 --- a/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/package.json +++ b/addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/package.json @@ -28,7 +28,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/main/packages/controllers/package.json b/main/packages/controllers/package.json index 1c891aaccc..bdb8627b50 100644 --- a/main/packages/controllers/package.json +++ b/main/packages/controllers/package.json @@ -26,7 +26,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/main/packages/services/package.json b/main/packages/services/package.json index 585193839b..5cee4faf49 100644 --- a/main/packages/services/package.json +++ b/main/packages/services/package.json @@ -26,7 +26,7 @@ "source-map-support": "^0.5.16" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/main/solution/backend/package.json b/main/solution/backend/package.json index 7354cf0d38..d533cac621 100644 --- a/main/solution/backend/package.json +++ b/main/solution/backend/package.json @@ -78,7 +78,7 @@ } }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "start-debug": "node --inspect node_modules/.bin/serverless offline start", diff --git a/main/solution/post-deployment/package.json b/main/solution/post-deployment/package.json index a024340991..8862ce71ba 100644 --- a/main/solution/post-deployment/package.json +++ b/main/solution/post-deployment/package.json @@ -56,7 +56,7 @@ "webpack": "^4.41.5" }, "scripts": { - "test-gh": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", + "coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov", "test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests", "test:watch": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --watchAll", "lint": "pnpm run lint:eslint && pnpm run lint:prettier", diff --git a/scripts/run-unit-tests-github.sh b/scripts/run-unit-tests-github.sh index 06359e266c..bbd3b41834 100755 --- a/scripts/run-unit-tests-github.sh +++ b/scripts/run-unit-tests-github.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -pnpm run test-gh --recursive --if-present $@ \ No newline at end of file +pnpm run coverage --recursive --if-present $@ \ No newline at end of file From c3136bfa89c6211962ede4c2976120e76bc940db Mon Sep 17 00:00:00 2001 From: SanketD92 Date: Thu, 22 Apr 2021 14:43:16 -0400 Subject: [PATCH 4/4] deleting unrequired file --- scripts/run-unit-tests-github.sh | 2 -- 1 file changed, 2 deletions(-) delete mode 100755 scripts/run-unit-tests-github.sh diff --git a/scripts/run-unit-tests-github.sh b/scripts/run-unit-tests-github.sh deleted file mode 100755 index bbd3b41834..0000000000 --- a/scripts/run-unit-tests-github.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -pnpm run coverage --recursive --if-present $@ \ No newline at end of file