From 244eafadd54c6fa609ad6fc4fa8a72d985f523d3 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Sun, 12 Sep 2021 09:37:22 +0200 Subject: [PATCH] add tests to github workflow Signed-off-by: Andrey Platov --- .github/workflows/main.yml | 9 +++++++++ dev/prod/package.json | 1 - packages/panel/package.json | 1 - packages/platform/package.json | 1 + packages/presentation/package.json | 1 - packages/text-editor/package.json | 1 - packages/theme/package.json | 1 - packages/ui/package.json | 1 - plugins/chunter-assets/package.json | 1 - plugins/chunter-resources/package.json | 1 - plugins/contact-assets/package.json | 1 - plugins/contact-resources/package.json | 1 - plugins/login-assets/package.json | 1 - plugins/login-resources/package.json | 1 - plugins/recruit-assets/package.json | 1 - plugins/recruit-resources/package.json | 1 - plugins/task-assets/package.json | 1 - plugins/task-resources/package.json | 1 - plugins/view-assets/package.json | 1 - plugins/view-resources/package.json | 1 - plugins/workbench-resources/package.json | 1 - 21 files changed, 10 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4ebdf6b56..32a29047a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,3 +41,12 @@ jobs: - name: Checking svelte sources... run: common/scripts/each.sh svelte-check + + - name: Testing... + uses: paambaati/codeclimate-action@v2.7.5 + env: + CC_TEST_REPORTER_ID: 346a83855d7124e9da8e6ec36a4fd01dc432f5cdc755eb28da7d9c44da9d1142 + with: + coverageCommand: common/scripts/each.sh test + coverageLocations: | + ${{github.workspace}}/packages/*/coverage/lcov.info:lcov diff --git a/dev/prod/package.json b/dev/prod/package.json index 89966b3244..60adfcb271 100644 --- a/dev/prod/package.json +++ b/dev/prod/package.json @@ -9,7 +9,6 @@ "dev": "webpack serve --content-base public", "dev-server": "cross-env CLIENT=server webpack serve --content-base public", "start": "cross-env NODE_ENV=production webpack serve --content-base public", - "test": "echo 'no tests'", "preformat-svelte": "prettier -w src/**/*.svelte", "lint": "eslint --max-warnings=0 src", "lint:fix": "yarn preformat-svelte && eslint --fix src", diff --git a/packages/panel/package.json b/packages/panel/package.json index 1055f56a7a..455aaaa5e5 100644 --- a/packages/panel/package.json +++ b/packages/panel/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/packages/platform/package.json b/packages/platform/package.json index cb72b175f4..d700facf28 100644 --- a/packages/platform/package.json +++ b/packages/platform/package.json @@ -6,6 +6,7 @@ "license": "EPL-2.0", "scripts": { "build": "heft build", + "test": "heft test", "lint:fix": "eslint --fix src" }, "devDependencies": { diff --git a/packages/presentation/package.json b/packages/presentation/package.json index fc0d7059ca..9242f9c95e 100644 --- a/packages/presentation/package.json +++ b/packages/presentation/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/packages/text-editor/package.json b/packages/text-editor/package.json index 872c4e9f61..66efc13c78 100644 --- a/packages/text-editor/package.json +++ b/packages/text-editor/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/packages/theme/package.json b/packages/theme/package.json index d8ccc59384..79e78b7cb2 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -7,7 +7,6 @@ "license": "EPL-2.0", "scripts": { "build": "", - "test": "echo 'no tests'", "lint": "ts-standard src", "lint:fix": "ts-standard --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" diff --git a/packages/ui/package.json b/packages/ui/package.json index 7cfd3271e7..f704c5615a 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src", diff --git a/plugins/chunter-assets/package.json b/plugins/chunter-assets/package.json index a4534e7e42..41175f436b 100644 --- a/plugins/chunter-assets/package.json +++ b/plugins/chunter-assets/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "echo 'no tests'", "lint": "ts-standard src", "lint:fix": "ts-standard --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" diff --git a/plugins/chunter-resources/package.json b/plugins/chunter-resources/package.json index 4964047649..c4938a37d8 100644 --- a/plugins/chunter-resources/package.json +++ b/plugins/chunter-resources/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/plugins/contact-assets/package.json b/plugins/contact-assets/package.json index 3badb8b771..45d3adbaad 100644 --- a/plugins/contact-assets/package.json +++ b/plugins/contact-assets/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "echo 'no tests'", "lint": "ts-standard src", "lint:fix": "ts-standard --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" diff --git a/plugins/contact-resources/package.json b/plugins/contact-resources/package.json index edfe7d745b..1e9b6e8047 100644 --- a/plugins/contact-resources/package.json +++ b/plugins/contact-resources/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/plugins/login-assets/package.json b/plugins/login-assets/package.json index 87840c68d5..e481b9bb20 100644 --- a/plugins/login-assets/package.json +++ b/plugins/login-assets/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "echo 'no tests'", "lint": "ts-standard src", "lint:fix": "ts-standard --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" diff --git a/plugins/login-resources/package.json b/plugins/login-resources/package.json index b9884b869a..9fea022842 100644 --- a/plugins/login-resources/package.json +++ b/plugins/login-resources/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/plugins/recruit-assets/package.json b/plugins/recruit-assets/package.json index e44c19163d..59581c73b1 100644 --- a/plugins/recruit-assets/package.json +++ b/plugins/recruit-assets/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "echo 'no tests'", "lint": "ts-standard src", "lint:fix": "ts-standard --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" diff --git a/plugins/recruit-resources/package.json b/plugins/recruit-resources/package.json index c21c3551a4..9bf87cfcf1 100644 --- a/plugins/recruit-resources/package.json +++ b/plugins/recruit-resources/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/plugins/task-assets/package.json b/plugins/task-assets/package.json index 1856de5073..5bc10ecd02 100644 --- a/plugins/task-assets/package.json +++ b/plugins/task-assets/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "echo 'no tests'", "lint": "ts-standard src", "lint:fix": "ts-standard --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" diff --git a/plugins/task-resources/package.json b/plugins/task-resources/package.json index 9e376917c5..a8b8310018 100644 --- a/plugins/task-resources/package.json +++ b/plugins/task-resources/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/plugins/view-assets/package.json b/plugins/view-assets/package.json index 09503a639a..a9ed7587ec 100644 --- a/plugins/view-assets/package.json +++ b/plugins/view-assets/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "echo 'no tests'", "lint": "ts-standard src", "lint:fix": "ts-standard --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && ts-standard --fix src" diff --git a/plugins/view-resources/package.json b/plugins/view-resources/package.json index f676916015..4372393b86 100644 --- a/plugins/view-resources/package.json +++ b/plugins/view-resources/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src" diff --git a/plugins/workbench-resources/package.json b/plugins/workbench-resources/package.json index 75d83809b8..c7c16b96ac 100644 --- a/plugins/workbench-resources/package.json +++ b/plugins/workbench-resources/package.json @@ -7,7 +7,6 @@ "scripts": { "build": "", "build:docs": "api-extractor run --local", - "test": "jest", "lint": "eslint src", "lint:fix": "eslint --fix src", "format": "prettier --write 'src/**/*.{ts*,js*,yml}' && eslint --fix src"