Skip to content

Commit

Permalink
👷 Configure Sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Jan 3, 2025
1 parent ff60663 commit fd078f9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...

- name: Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v4.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

build:
name: Build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
release:
Expand Down
3 changes: 0 additions & 3 deletions codecov.yml

This file was deleted.

12 changes: 12 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sonar.projectKey=systemli_ticker
sonar.organization=systemli
sonar.links.homepage=https://github.com/systemli/ticker
sonar.sourceEncoding=UTF-8

sonar.sources=.
sonar.exclusions=**/mock_*.go

sonar.tests=.
sonar.test.inclusions=**/*_test.go

sonar.go.coverage.reportPaths=coverage.txt

0 comments on commit fd078f9

Please sign in to comment.