Repository navigation
ci: bring back the SonarCloud scan - #231
Merged
Merged
Conversation
#230 dropped the scan, and Sonar has not analyzed anything since. Restore it in the reports job with its inputs: the coverage profile, the go test JSON report and the golangci-lint checkstyle report. The checkstyle report is now requested with a flag in that one step, not in .golangci.yml, so local lint runs no longer leave linters-report.xml behind. sonar-project.properties drops the stale projectVersion and the vendor/ exclusions, as vendor/ is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #231 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 99 99
=========================================
Hits 99 99 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Brings back the SonarCloud scan that #230 removed. Since #230 Sonar has not analyzed anything: the last analysis of #229 is from commit 5552837.
In the
Quality reportsjob:make test-coveragain also writestests-report.json(go test -json);linters-report.xml;sonarqube-scan-actionstep withSONAR_TOKENis back; the secret is still in the repo.What differs from the setup before #230:
--output.checkstyle.pathin the CI step only, not in.golangci.yml. Before, every localmake lint-fullleftlinters-report.xmlin the working tree. I checked that the flag keeps the text output from the config and writes the findings to the report.sonar-project.propertieswithoutsonar.projectVersion=1.0and thevendor/exclusions.vendor/was removed in chore: lower minimum Go to 1.26.0, test on stable/oldstable, drop vendor/ #225.Also restored: the Quality Gate badge in the README, and the
tests-report.jsonandlinters-report.xmlentries in.gitignore.Github Issue
—
Possible failures/side-effects
make test-coverwrites the go test output totests-report.json, so the terminal stays silent; this was the case before chore: trim tooling to what a small library needs #230 too. A failing test still fails the target.Sonar has not seen commits after 5552837. The first analysis on
masterafter the merge may show a large "new code" diff.Local checks:
make test-coverwritescoverage/full.covandtests-report.json;golangci-lintwith the checkstyle flag writes the report.The scan step itself is checked only by this PR's CI run.
🤖 Generated with Claude Code