-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nullability and code coverage... we'll see how it goes.
- Loading branch information
Showing
10 changed files
with
89 additions
and
30 deletions.
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 |
---|---|---|
|
@@ -32,7 +32,59 @@ jobs: | |
useConfigFile: true | ||
|
||
- name: Run Tests | ||
run: dotnet test | ||
run: dotnet test --logger trx --collect:"XPlat Code Coverage" | ||
|
||
- name: Combine Coverage Reports # This is because one report is produced per project, and we want one result for all of them. | ||
uses: danielpalme/[email protected] | ||
with: | ||
reports: "**/*.cobertura.xml" # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported. | ||
targetdir: "${{ github.workspace }}" # REQUIRED # The directory where the generated report should be saved. | ||
reporttypes: "Cobertura" # The output formats and scope (separated by semicolon) Values: Badges, Clover, Cobertura, CsvSummary, Html, Html_Dark, Html_Light, Html_BlueRed, HtmlChart, HtmlInline, HtmlInline_AzurePipelines, HtmlInline_AzurePipelines_Dark, HtmlInline_AzurePipelines_Light, HtmlSummary, JsonSummary, Latex, LatexSummary, lcov, MarkdownSummary, MarkdownSummaryGithub, MarkdownDeltaSummary, MHtml, PngChart, SonarQube, TeamCitySummary, TextSummary, TextDeltaSummary, Xml, XmlSummary | ||
verbosity: "Info" # The verbosity level of the log messages. Values: Verbose, Info, Warning, Error, Off | ||
title: "Code Coverage" # Optional title. | ||
tag: "${{ github.run_number }}_${{ github.run_id }}" # Optional tag or build version. | ||
customSettings: "" # Optional custom settings (separated by semicolon). See: https://github.com/danielpalme/ReportGenerator/wiki/Settings. | ||
toolpath: "reportgeneratortool" # Default directory for installing the dotnet tool. | ||
|
||
- name: Upload Combined Coverage XML | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
path: ${{ github.workspace }}/Cobertura.xml | ||
retention-days: 5 | ||
|
||
- name: Publish Code Coverage Report | ||
uses: irongut/[email protected] | ||
with: | ||
filename: "Cobertura.xml" | ||
badge: true | ||
fail_below_min: false # just informative for now | ||
format: markdown | ||
hide_branch_rate: false | ||
hide_complexity: false | ||
indicators: true | ||
output: both | ||
thresholds: "10 30" | ||
|
||
- name: Add Coverage PR Comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md | ||
|
||
- name: Upload Test Result Files | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-results | ||
path: ${{ github.workspace }}/**/TestResults/**/* | ||
retention-days: 5 | ||
|
||
- name: Publish Test Results | ||
uses: EnricoMi/[email protected] | ||
if: always() | ||
with: | ||
trx_files: "${{ github.workspace }}/**/*.trx" | ||
|
||
- name: Pack | ||
run: dotnet pack src/Docker.Registry.DotNet -c Release -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg | ||
|
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
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
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
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
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