-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: Test | ||
run: make test-integration GOTEST_FLAGS="-v -count=1" | ||
# The test coverate and the test report are needed for the SonarCloud analysis | ||
run: make test-integration GOTEST_FLAGS="-v -count=1 -coverprofile coverage.out" 2>&1 | tee test-report.out | ||
|
||
- name: SonarCloud Scan | ||
uses: SonarSource/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# ===================================================== | ||
# Standard properties | ||
# ===================================================== | ||
|
||
sonar.projectKey=conduit | ||
sonar.organization=conduitio | ||
sonar.projectName=Conduit | ||
|
||
sonar.sources=. | ||
sonar.exclusions=**/*_test.go,**/vendor/**,**/ui/** | ||
|
||
sonar.tests=. | ||
sonar.test.inclusions=**/*_test.go | ||
sonar.test.exclusions=**/vendor/** | ||
|
||
# ===================================================== | ||
# Metadata for the project | ||
# ===================================================== | ||
|
||
sonar.links.homepage=https://conduit.io/ | ||
sonar.links.scm=https://github.com/ConduitIO/conduit | ||
sonar.links.issue=https://github.com/ConduitIO/conduit/issues | ||
|
||
# ===================================================== | ||
# Properties specific to Go | ||
# ===================================================== | ||
|
||
sonar.go.gometalinter.reportPaths=golangci-report.xml | ||
sonar.go.tests.reportPaths=test-report.out | ||
sonar.go.coverage.reportPaths=coverage.out |