From bef7b2b831a2ad66d22c4081d37f9009b8b1a300 Mon Sep 17 00:00:00 2001 From: Branislav Stojkovic Date: Thu, 20 Feb 2025 16:21:08 +0100 Subject: [PATCH] add sonar --- diylc/.github/workflows/build.yml | 19 +++++++++++++++++++ diylc/sonar-project.properties | 13 +++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 diylc/.github/workflows/build.yml create mode 100644 diylc/sonar-project.properties diff --git a/diylc/.github/workflows/build.yml b/diylc/.github/workflows/build.yml new file mode 100644 index 00000000..5f6039e0 --- /dev/null +++ b/diylc/.github/workflows/build.yml @@ -0,0 +1,19 @@ +name: Build +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarqube: + name: SonarQube + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v4 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/diylc/sonar-project.properties b/diylc/sonar-project.properties new file mode 100644 index 00000000..6ac927c5 --- /dev/null +++ b/diylc/sonar-project.properties @@ -0,0 +1,13 @@ +sonar.projectKey=bancika_diy-layout-creator +sonar.organization=bancika + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=diy-layout-creator +#sonar.projectVersion=1.0 + + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 \ No newline at end of file