Skip to content

Commit

Permalink
Update sonarcloud workflow configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenowa committed Apr 23, 2024
1 parent 373e7d5 commit 1e139cc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/full_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./.jacoco/reports/jacoco/report.xml

- name: Cache SonarCloud packages for faster analysis
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Generate SonarCloud Report
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: "${{ env.SONAR_TOKEN != '' }}"
run: ./gradlew sonar --info

windows_build:
name: Build
runs-on: windows-latest
Expand Down
14 changes: 0 additions & 14 deletions ScanCommand/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ plugins {
id 'jacoco'
id 'com.github.spotbugs'
id 'de.undercouch.download'
id 'org.sonarqube'
}

group = "${group}"
Expand Down Expand Up @@ -305,16 +304,3 @@ task createCodeCoverageReport(type: JacocoReport) {
}

createCodeCoverageReport.dependsOn(copyExecFilesAndJavaClassFiles)

// SonarCloud Configurations
sonar {
properties {
property "sonar.projectKey", "ballerina-platform_static-code-analysis-tool"
property "sonar.organization", "ballerina-platform"
property "sonar.host.url", "https://sonarcloud.io"

// Additional properties
// To Add test coverage
property "sonar.coverage.jacoco.xmlReportPaths", "${rootDir}/.jacoco/reports/jacoco/*.xml"
}
}
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ pluginManagement {
id 'jacoco'
id 'com.github.spotbugs' version "${spotbugsPluginVersion}"
id 'de.undercouch.download' version "${downloadPluginVersion}"
id 'org.sonarqube' version "${sonarqubeGradlePluginVersion}"
}
}

Expand Down

0 comments on commit 1e139cc

Please sign in to comment.