mirror of
https://github.com/dzeiocom/libs.git
synced 2025-04-22 02:42:13 +00:00
Move from codecov to sonarqube (#45)
* replaced Signed-off-by: Avior <github@avior.me> * this is stupid Signed-off-by: Avior <github@avior.me> * run sonar only on latest node version Signed-off-by: Avior <github@avior.me> * try to use code coverage Signed-off-by: Avior <github@avior.me> * Fixed? Signed-off-by: Avior <github@avior.me> * try another way to send report files Signed-off-by: Avior <github@avior.me> * prrrrrrrrrrrrrrr Signed-off-by: Avior <github@avior.me> * prrrrrrrrrr2 Signed-off-by: Avior <github@avior.me> * prrrrrrrrrrrrrrrrrrr3 Signed-off-by: Avior <github@avior.me> * prrrrrrrrrrrrrrr15 Signed-off-by: Avior <github@avior.me> * prrrrrrrrrrrrr9001 Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
018f8e043a
commit
3524264b68
12
.github/workflows/node.js.yml
vendored
12
.github/workflows/node.js.yml
vendored
@ -39,12 +39,18 @@ jobs:
|
||||
run: npm run test --workspaces --if-present
|
||||
|
||||
- uses: sonarsource/sonarcloud-github-action@master
|
||||
if: matrix.node-version == '16.x'
|
||||
with:
|
||||
args: >
|
||||
-Dsonar.organization=dzeio
|
||||
-Dsonar.projectKey=libs
|
||||
-Dsonar.python.coverage.reportPaths=packages/**/coverage/clover.xml
|
||||
-Dsonar.sources=.
|
||||
-Dsonar.projectKey=dzeiocom_libs
|
||||
-Dsonar.javascript.lcov.reportPaths=packages/**/coverage/lcov.info
|
||||
-Dsonar.testExecutionReportPaths=packages/easy-sitemap/test-report.xml,packages/object-util/test-report.xml,packages/url-manager/test-report.xml
|
||||
-Dsonar.sources=packages
|
||||
-Dsonar.exclusions=packages/**/__tests__,packages/**/dist,node_modules,packages/**/coverage
|
||||
-Dsonar.tests=packages/easy-sitemap/__tests__,packages/object-util/__tests__,packages/url-manager/__tests__
|
||||
-Dsonar.test.inclusions=packages/**/*.test.ts
|
||||
-Dsonar.sourceEncoding=UTF-8
|
||||
-Dsonar.verbose=true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ yarn-error.log
|
||||
dist
|
||||
.cache
|
||||
coverage
|
||||
test-report.xml
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"preset": "ts-jest",
|
||||
"testEnvironment": "node"
|
||||
"testEnvironment": "node",
|
||||
"testResultsProcessor": "jest-sonar-reporter"
|
||||
}
|
||||
|
38
package-lock.json
generated
38
package-lock.json
generated
@ -19,6 +19,7 @@
|
||||
"devDependencies": {
|
||||
"@types/jest": "^27.0.2",
|
||||
"jest": "^27.2.3",
|
||||
"jest-sonar-reporter": "^2.0.0",
|
||||
"ts-jest": "^27.0.5",
|
||||
"ts-node": "^10.2.1",
|
||||
"typescript": "^4.4.3"
|
||||
@ -8685,6 +8686,18 @@
|
||||
"node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/jest-sonar-reporter": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jest-sonar-reporter/-/jest-sonar-reporter-2.0.0.tgz",
|
||||
"integrity": "sha512-ZervDCgEX5gdUbdtWsjdipLN3bKJwpxbvhkYNXTAYvAckCihobSLr9OT/IuyNIRT1EZMDDwR6DroWtrq+IL64w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"xml": "^1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/jest-util": {
|
||||
"version": "27.2.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.2.3.tgz",
|
||||
@ -16575,6 +16588,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/xml": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",
|
||||
"integrity": "sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/xml-name-validator": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",
|
||||
@ -16717,7 +16736,7 @@
|
||||
},
|
||||
"packages/object-util": {
|
||||
"name": "@dzeio/object-util",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.13.2"
|
||||
@ -16730,7 +16749,7 @@
|
||||
},
|
||||
"packages/url-manager": {
|
||||
"name": "@dzeio/url-manager",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@dzeio/object-util": "^1.4.0"
|
||||
@ -23459,6 +23478,15 @@
|
||||
"semver": "^7.3.2"
|
||||
}
|
||||
},
|
||||
"jest-sonar-reporter": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jest-sonar-reporter/-/jest-sonar-reporter-2.0.0.tgz",
|
||||
"integrity": "sha512-ZervDCgEX5gdUbdtWsjdipLN3bKJwpxbvhkYNXTAYvAckCihobSLr9OT/IuyNIRT1EZMDDwR6DroWtrq+IL64w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"xml": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"jest-util": {
|
||||
"version": "27.2.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.2.3.tgz",
|
||||
@ -29757,6 +29785,12 @@
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
},
|
||||
"xml": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",
|
||||
"integrity": "sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=",
|
||||
"dev": true
|
||||
},
|
||||
"xml-name-validator": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",
|
||||
|
@ -15,6 +15,7 @@
|
||||
"devDependencies": {
|
||||
"@types/jest": "^27.0.2",
|
||||
"jest": "^27.2.3",
|
||||
"jest-sonar-reporter": "^2.0.0",
|
||||
"ts-jest": "^27.0.5",
|
||||
"ts-node": "^10.2.1",
|
||||
"typescript": "^4.4.3"
|
||||
|
Loading…
x
Reference in New Issue
Block a user