From 24cd4be59b2db39415e1dc55ff703dd3668005f3 Mon Sep 17 00:00:00 2001 From: ClaudiaGivan Date: Fri, 16 Feb 2024 16:27:04 +0200 Subject: [PATCH] [TRON-19085] Set up SonarQube --- .github/workflows/sonarqube.yml | 23 +++++++++++++ examples/example.html | 4 +-- examples/example.js | 38 ++++++++++++++------- examples/sidebars.js | 58 ++++++++++++++++++-------------- sonar-project.properties | 1 + src/data-processor.js | 1 - src/graphs/UIControlsRenderer.js | 7 ++-- src/graphs/cfd/CFDRenderer.js | 44 +++++++++++++----------- 8 files changed, 114 insertions(+), 62 deletions(-) create mode 100644 .github/workflows/sonarqube.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 0000000..2743fe2 --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,23 @@ +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +jobs: + sonarqube: + name: SonarQube Scan + continue-on-error: true + runs-on: [self-hosted, bolt-ubuntu] + + steps: + - name: Checkout Codebase + uses: actions/checkout@v3 + + - name: SonarQube Scan + uses: pfizer-github-automation/sonar-scan-action@main + env: + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + SONAR_ROOT_CERT: ${{ secrets.SONAR_ROOT_CERT }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/examples/example.html b/examples/example.html index cc518c0..6bcf3fc 100644 --- a/examples/example.html +++ b/examples/example.html @@ -15,7 +15,7 @@

Graphs library