Skip to content

Commit 83aeb5a

Browse files
feat: implment sonarqube
1 parent 17dcabe commit 83aeb5a

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/init_runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ THIS_DIR=$(dirname "$THIS_FILE")
1212
### Github Actions
1313

1414
init_github_run_tests() {
15-
install_reqs age sops nvm node20 mongo7
15+
install_reqs age sops nvm node20 mongo7 sonar_scanner_cli
1616
}
1717

1818
init_github_additional_tests() {

scripts/run_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ done
4646
##
4747

4848
run_lib_tests "$ROOT_DIR" "$CODE_COVERAGE" "$NODE_VER" "$MONGO_VER"
49+
50+
cd "$ROOT_DIR" && sonar-scanner

sonar-project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sonar.projectKey=kalisio-kfs
2+
sonar.sources=api/src,src
3+
sonar.sourceEnconding=UTF-8
4+
sonar.javascript.lcov.reportPaths=api/coverage/lcov.info,coverage/lcov.info

0 commit comments

Comments
 (0)