diff --git a/.github/workflows/sonar-qube-scan.yaml b/.github/workflows/sonar-qube-scan.yaml new file mode 100644 index 0000000..b3bd3e9 --- /dev/null +++ b/.github/workflows/sonar-qube-scan.yaml @@ -0,0 +1,20 @@ +name: SonarQube Scanning + +on: + push: + branches: + - '**' # Matches all branches + +jobs: + sonarqube-scan: + name: Run SonarQube Analysis + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..0ff067d --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=com.nicedfo.react-highcharts +sonar.projectName=react-highcharts +sonar.sources=demo,src +sonar.exclusions=vendor/**,temp/**,tests/**,**/*.html,**/*.json +sonar.host.url=https://sonar.nice.com +sonar.sourceEncoding=UTF-8