From f8ecfa268dd94aee4d82701ea1297bbbbe54a3d2 Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Sun, 9 Jan 2022 11:15:59 +0100 Subject: [PATCH] removing sonarcloud analysis --- .github/workflows/sonarcloud.yml | 62 -------------------------------- README.md | 1 - sonar-project.properties | 26 -------------- 3 files changed, 89 deletions(-) delete mode 100644 .github/workflows/sonarcloud.yml delete mode 100644 sonar-project.properties diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index 4c27ec93..00000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: SonarCloud - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - name: Compile and Test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup go - uses: actions/setup-go@v2 - with: - go-version: ^1.17 - - - name: Creating bin folder - run: | - mkdir -p bin - - - name: Build app binary from src/*.go - run: | - go build -o bin/service-sonar src/*.go - - - name: Running test - run: | - go test -short -coverprofile=bin/cov.out `go list ./... | grep -v vendor/` - - - name: Running go tool cover - run: | - go tool cover -func=bin/cov.out - - - name: Archive code coverage results - uses: actions/upload-artifact@v1 - with: - name: code-coverage-report - path: bin - - sonarCloudTrigger: - needs: build - name: SonarCloud Trigger - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Download code coverage results - uses: actions/download-artifact@v1 - with: - name: code-coverage-report - path: bin - - - name: Analyze with SonarCloud - uses: sonarsource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/README.md b/README.md index 97a7f49f..be4854ce 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # TibiaData API in Golang [![GitHub CI](https://github.com/TibiaData/tibiadata-api-go/workflows/build/badge.svg?branch=main)](https://github.com/TibiaData/tibiadata-api-go/actions?query=workflow%3Abuild) -[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=TibiaData_tibiadata-api-go&metric=coverage)](https://sonarcloud.io/summary/new_code?id=TibiaData_tibiadata-api-go) [![GitHub go.mod version](https://img.shields.io/github/go-mod/go-version/tibiadata/tibiadata-api-go)](https://github.com/tibiadata/tibiadata-api-go/blob/main/go.mod) [![Docker version](https://img.shields.io/docker/v/tibiadata/tibiadata-api-go/latest)](https://hub.docker.com/r/tibiadata/tibiadata-api-go) [![Docker size](https://img.shields.io/docker/image-size/tibiadata/tibiadata-api-go/latest)](https://hub.docker.com/r/tibiadata/tibiadata-api-go) diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index ecf8cf86..00000000 --- a/sonar-project.properties +++ /dev/null @@ -1,26 +0,0 @@ -sonar.projectKey=TibiaData_tibiadata-api-go -sonar.organization=tibiadata - -# This is the name and version displayed in the SonarCloud UI. -#sonar.projectName=tibiadata-api-go -#sonar.projectVersion=1.0 - -# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -sonar.sources=. -sonar.exclusions=**/src/*_test.go,**/testdata/* - -sonar.tests=. -sonar.test.inclusions=**/src/*_test.go -#sonar.test.exclusions= -sonar.go.coverage.reportPaths=/github/workspace/bin/cov.out - -# Encoding of the source code. Default is default system encoding -sonar.sourceEncoding=UTF-8 - -# ===================================================== -# Properties specific to Go -# ===================================================== - -#sonar.go.gometalinter.reportPaths=gometalinter-report.out -#sonar.go.tests.reportPaths=report.json -#sonar.go.coverage.reportPaths=coverage.out \ No newline at end of file