diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 98e9d0a..158324c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -22,6 +22,12 @@ jobs: - name: Test run: go test -coverprofile=coverage.txt -covermode=atomic ./... + - name: SonarCloud Scan + uses: sonarsource/sonarcloud-github-action@v3.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + build: name: Build runs-on: ubuntu-22.04 @@ -37,25 +43,3 @@ jobs: - name: Build run: go build - - automerge: - name: Merge Automatically - needs: [test, build] - runs-on: ubuntu-22.04 - - permissions: - pull-requests: write - contents: write - - steps: - - name: Obtain Access Token - id: acces_token - run: | - TOKEN="$(npx obtain-github-app-installation-access-token ci ${{ secrets.SYSTEMLI_APP_CREDENTIALS_TOKEN }})" - echo "::add-mask::$TOKEN" - echo "::set-output name=token::$TOKEN" - - - name: Merge - uses: fastify/github-action-merge-dependabot@v3 - with: - github-token: ${{ steps.acces_token.outputs.token }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..8f8018c --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,11 @@ +sonar.projectKey=systemli_userli-postfix-adapter +sonar.organization=systemli +sonar.links.homepage=https://github.com/systemli/userli-postfix-adapter +sonar.sourceEncoding=UTF-8 + +sonar.sources=. + +sonar.tests=. +sonar.test.inclusions=**/*_test.go + +sonar.go.coverage.reportPaths=coverage.out