Skip to content

Commit cdff4d4

Browse files
fix: implement Sonar
1 parent d7175a7 commit cdff4d4

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: Build job
2424
env:
2525
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}
26-
run: bash ./scripts/build.sh -s -p -r ${{ github.job }} -v ${{ matrix.variant }}
26+
run: bash ./scripts/build.sh -p -r ${{ github.job }} -v ${{ matrix.variant }}

scripts/build.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ WORKSPACE_DIR="$(dirname "$ROOT_DIR")"
1515
PUBLISH=false
1616
JOB_VARIANT=
1717
WORKFLOW_JOB_ID=
18-
RUN_SONAR=false
19-
while getopts "spr:v:" option; do
18+
while getopts "pr:v:" option; do
2019
case $option in
21-
s) # enable SonarQube analysis and publish code quality & coverage results
22-
RUN_SONAR=true
23-
;;
2420
p) # publish
2521
PUBLISH=true
2622
;;
@@ -55,3 +51,5 @@ build_job \
5551
"$KALISIO_DOCKERHUB_USERNAME" \
5652
"$KALISIO_DOCKERHUB_PASSWORD" \
5753
"$PUBLISH"
54+
55+
cd "$ROOT_DIR" && sonar-scanner

0 commit comments

Comments
 (0)