1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 05:15:43 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Oliver Booth
8d2b4b011b
Merge branch 'main' into release/4.0.0 2024-02-17 17:28:53 +00:00
8459d8fc83
ci(test): use coverage from coverlet 2024-02-17 17:23:27 +00:00
fdf1465730
test: coverlet output xml 2024-02-17 17:23:02 +00:00
25062bbf8b
fix(ci): fix coverage reports 2024-02-17 16:23:14 +00:00
2 changed files with 5 additions and 17 deletions

View File

@ -33,33 +33,21 @@ jobs:
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore run: dotnet restore
- name: Install coverage tools
run: |
dotnet tool install --global JetBrains.dotCover.GlobalTool
dotnet tool install --global dotnet-reportgenerator-globaltool
- name: Build - name: Build
run: dotnet build --no-restore --configuration Release run: dotnet build --no-restore --configuration Release
- name: Test .NET 6 - name: Test .NET 6
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0 run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0 --collect:"XPlat Code Coverage" --results-directory test-results/net6.0
- name: Test .NET 7 - name: Test .NET 7
run: dotnet test --no-build --verbosity normal --configuration Release --framework net7.0 run: dotnet test --no-build --verbosity normal --configuration Release --framework net7.0 --collect:"XPlat Code Coverage" --results-directory test-results/net7.0
- name: Test .NET 8 - name: Test .NET 8
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0 run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0 --collect:"XPlat Code Coverage" --results-directory test-results/net8.0
- name: Collect coverage
run: dotnet dotcover test --dcReportType=DetailedXML
- name: Convert coverage
run: reportgenerator -reports:./dotCover.Output.xml -targetdir:. -reporttypes:Cobertura
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.0 uses: codecov/codecov-action@v4.0.0
with: with:
disable_search: true directory: test-results
file: Cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
slug: oliverbooth/X10D slug: oliverbooth/X10D

View File

@ -4,7 +4,7 @@
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks> <TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject> <IsTestProject>true</IsTestProject>
<CoverletOutputFormat>json,cobertura</CoverletOutputFormat> <CoverletOutputFormat>xml,cobertura</CoverletOutputFormat>
<CollectCoverage>true</CollectCoverage> <CollectCoverage>true</CollectCoverage>
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors> <CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>