-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
4dc5fc1
commit 25062bb
Showing
1 changed file
with
11 additions
and
5 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 |
---|---|---|
|
@@ -33,8 +33,10 @@ jobs: | |
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Install dotCover | ||
run: dotnet tool install --global JetBrains.dotCover.GlobalTool | ||
- name: Install coverage tools | ||
run: | | ||
dotnet tool install --global JetBrains.dotCover.GlobalTool | ||
dotnet tool install --global dotnet-reportgenerator-globaltool | ||
- name: Build | ||
run: dotnet build --no-restore --configuration Release | ||
|
@@ -50,13 +52,17 @@ jobs: | |
|
||
- name: Test .NET 8 | ||
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0 | ||
|
||
- name: Collect coverage | ||
run: dotnet dotcover test --dcReportType=XML | ||
run: dotnet dotcover test --dcReportType=DetailedXML | ||
|
||
- name: Convert coverage | ||
run: reportgenerator -reports:./dotCover.Output.xml -targetdir:. -reporttypes:Cobertura | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
disable_search: true | ||
file: Cobertura.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: dotCover.Output.xml | ||
slug: oliverbooth/X10D |