Skip to content

Commit 291d1c3

Browse files
feat: implement Sonar
1 parent f086327 commit 291d1c3

5 files changed

Lines changed: 16 additions & 36 deletions

File tree

‎.codeclimate.yml‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎.github/workflows/main.yaml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
name: CI
2-
on: [ push, workflow_dispatch ]
2+
on:
3+
push:
4+
workflow_dispatch:
5+
inputs:
6+
build_app:
7+
description: "Build app"
8+
default: false
9+
required: false
10+
type: boolean
311

412
jobs:
513
build_app:

‎scripts/build_app.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ GIT_TAG=$(get_lib_tag)
4949

5050
load_env_files "$WORKSPACE_DIR/development/common/kalisio_dockerhub.enc.env" "$WORKSPACE_DIR/development/common/SLACK_WEBHOOK_SERVICES.enc.env"
5151
load_value_files "$WORKSPACE_DIR/development/common/KALISIO_DOCKERHUB_PASSWORD.enc.value"
52+
. "$WORKSPACE_DIR/development/workspaces/apps/apps.sh" weacast-app
5253

5354
## Build container
5455
##
@@ -93,3 +94,5 @@ fi
9394
docker logout
9495

9596
end_group "Building container ..."
97+
98+
cd "$ROOT_DIR" && sonar-scanner

‎scripts/init_runner.sh‎

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

1515
init_github_build_app() {
16-
install_reqs age sops nvm node20
16+
install_reqs age sops nvm node20 sonar_scanner_cli
1717
}
1818

1919
begin_group "Init $CI_ID for $JOB_ID"

‎sonar-project.properties‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sonar.projectKey=kalisio-weacast-app
2+
sonar.sources=src
3+
sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)