diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml deleted file mode 100644 index aa2635d..0000000 --- a/.github/workflows/sonar.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflow will build a golang project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go - -name: Sonar Report - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.24' - - - name: Generate Sonar Report - run: go test -coverpkg=./... -coverprofile=coverage.out -json ./... > sonar-report.json - - - name: Upload coverage reports to Sonar - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - if: github.event.pull_request.head.repo.full_name == github.repository || env.SONAR_TOKEN != '' - uses: SonarSource/sonarqube-scan-action@v5.3.1 diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index 2b3ebf7..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1,11 +0,0 @@ -sonar.organization=danger -sonar.projectKey=danger_golang -sonar.projectName=golang -sonar.links.scm=https://github.com/danger/golang -sonar.sources=. -sonar.exclusions=**/*_test.go, **/*pb.go, _examples/**/* -sonar.go.coverage.reportPaths=coverage.out -sonar.go.tests.reportPaths=sonar-report.json -sonar.tests=. -sonar.test.inclusions=**/*_test.go -sonar.test.exclusions=**/*pb.go, _examples/**/* \ No newline at end of file