CI: add SonarQube analysis workflow + Codecov badge#24
Merged
Conversation
Add Sonar.yml running dotnet-sonarscanner on develop pushes (and workflow_dispatch). Community-Edition Sonar has no branch/PR support, so analysis is scoped to the long-lived develop branch; PR build/test feedback stays in CI.yml. Build/test run in Release with an explicit restore to mirror CI.yml, coverage is collected via coverlet (opencover) and uploaded to Codecov. Add the Codecov badge to the README. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Summary
Adds a SonarQube analysis workflow and a Codecov coverage badge.
.github/workflows/Sonar.yml— runsdotnet-sonarscanneron pushes todevelopand viaworkflow_dispatch.developbranch; PR build/test feedback stays inCI.yml.fetch-depth: 0, JDK 17 (zulu), and scanner caching per Sonar requirements.dotnet restore --no-restoreflow to mirrorCI.yml.opencoverformat) and uploaded to Codecov (coverage + test results).README.md— adds the Codecov badge.Notes
**/tests/**); nosamples/directory exists in this repo.SONAR_PROJECT_KEY,SONAR_TOKEN,SONAR_HOST_URL,CODECOV_TOKEN.developrun, confirm the scanner end-step log shows it parsed the OpenCover report (validates the coverage path resolves).🤖 Generated with Claude Code