ci: add CI workflow with build, test, and coverage reporting #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/add-ci-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
.github/workflows/ci.yml— a two-job CI pipeline based on the TeamAI admin snippet, adapted to this repo's layout and extended with code coverage reporting.Jobs
buildCheckout →
dotnet restore→dotnet build -c Release --no-restore.Fast-fails on compile errors without spinning up the test runner. All
dotnetsteps setworking-directory: backendsince the solution (DoujinManager.slnx) lives there.test(needs: build)Checkout → restore → build →
dotnet test --no-build --collect:"XPlat Code Coverage"→ merge cobertura XML → upload HTML report as artifact.--collect:"XPlat Code Coverage"producescoverage.cobertura.xmlper test project with zero extra wiring.dotnet-reportgenerator-globaltool(installed inline, pinned to 5.4.4).coverage-report/directory is uploaded as a build artifact (coverage-report), downloadable from the Actions run page.if-no-files-found: errorcatches the case where coverage collection silently produced nothing.Verification
Built and tested locally against
mainHEAD before opening this PR:Coverlet attachments confirmed present per test project:
ApplicationCore.Tests/TestResults/<guid>/coverage.cobertura.xmlInfrastructure.Tests/TestResults/<guid>/coverage.cobertura.xmlIntegrationTests/TestResults/<guid>/coverage.cobertura.xmlRestAdapter.Tests/TestResults/<guid>/coverage.cobertura.xmlNotes
pushtomainandpull_requestagainstmain(per the admin snippet).runs-on: dotnet— the self-hosted runner label provided by the admin.Summary
Summary
Coverage
DoujinManager.ApplicationCore - 76.7%
DoujinManager.Infrastructure - 21.8%
pshot
DoujinManager.Server - 0%