File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 15
15
fail-fast : false
16
16
name : .NET ${{ matrix.DOTNET_VERSION }}
17
17
runs-on : windows-latest
18
+ timeout-minutes : 30
18
19
steps :
19
20
- name : Checkout repository
20
21
uses : actions/checkout@v4
@@ -38,10 +39,10 @@ jobs:
38
39
with :
39
40
args : ' install opencover.portable codecov -y'
40
41
- name : Build
41
- run : dotnet build Parse.sln --configuration Debug --no-restore
42
+ run : dotnet build Parse.sln --configuration Debug --no-restore /p:DebugType=full /p:GenerateFullPaths=true /p:CollectCoverage=false
42
43
- name : Run tests with coverage
43
44
run : |
44
- OpenCover.Console.exe -target:dotnet.exe -targetargs:"test --framework net${{ matrix.DOTNET_VERSION }} --configuration Debug --test-adapter-path:. --logger:console /p:DebugType=full .\Parse.Tests\Parse.Tests.csproj" -filter:"+[Parse*]* -[Parse.Tests*]*" -oldstyle -output:parse_sdk_dotnet_coverage.xml -register:user
45
+ OpenCover.Console.exe -returntargetcode -target:dotnet.exe -targetargs:"test --framework net${{ matrix.DOTNET_VERSION }} --configuration Debug --test-adapter-path:. --logger:console /p:DebugType=full .\Parse.Tests\Parse.Tests.csproj" -filter:"+[Parse*]* -[Parse.Tests*]*" -oldstyle -output:parse_sdk_dotnet_coverage.xml -register:user
45
46
- name : Upload code coverage
46
47
uses : codecov/codecov-action@v4
47
48
with :
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFramework >net6.0</ TargetFramework >
3
+ <TargetFrameworks >net6.0;net7.0;net8.0;net9.0</ TargetFrameworks >
4
4
<IsPackable >false</IsPackable >
5
5
<LangVersion >latest</LangVersion >
6
6
</PropertyGroup >
You can’t perform that action at this time.
0 commit comments