@@ -4,36 +4,47 @@ on: [push, pull_request]
4
4
jobs :
5
5
ununtu :
6
6
runs-on : ubuntu-latest
7
+ env :
8
+ DOTNET_NOLOGO : true
7
9
steps :
8
10
- uses : actions/checkout@v2
11
+ - uses : actions/setup-dotnet@v1
12
+ with :
13
+ dotnet-version : |
14
+ 3.1.x
15
+ 6.0.x
9
16
- run : dotnet restore src/NetMQ.sln
10
17
- name : build
11
18
run : dotnet build src/NetMQ.sln /p:Configuration=Release /verbosity:minimal
12
19
- name : test netcoreapp3.1
13
20
run : dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp3.1 src/NetMQ.Tests/NetMQ.Tests.csproj
14
- - name : test netcoreapp2.1
15
- run : dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp2.1 src/NetMQ.Tests/NetMQ.Tests.csproj
21
+ - name : test net6.0
22
+ run : dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net6.0 src/NetMQ.Tests/NetMQ.Tests.csproj
16
23
windows :
17
24
runs-on : windows-latest
25
+ env :
26
+ DOTNET_NOLOGO : true
18
27
steps :
19
28
- uses : actions/checkout@v2
29
+ - uses : actions/setup-dotnet@v1
30
+ with :
31
+ dotnet-version : |
32
+ 3.1.x
33
+ 6.0.x
20
34
- name : Install codecov
21
35
run : |
22
36
choco install opencover.portable
23
37
choco install codecov
24
38
- run : dotnet restore src/NetMQ.sln
25
39
- name : build
26
40
run : dotnet build src/NetMQ.sln /p:Configuration=Release /verbosity:minimal
27
- - name : test netcoreapp2.1
28
- run : dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp2.1 src\NetMQ.Tests\NetMQ.Tests.csproj
41
+ - name : test net6.0
42
+ run : dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net6.0 src\NetMQ.Tests\NetMQ.Tests.csproj
29
43
- name : test netcoreapp3.1
30
44
run : dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp3.1 src\NetMQ.Tests\NetMQ.Tests.csproj
31
45
- name : test net47
32
46
run : dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net47 src\NetMQ.Tests\NetMQ.Tests.csproj
33
47
- name : coverage
34
48
run : |
35
- OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --no-build --configuration Release -f netcoreapp2.1 --logger:trx;LogFileName=results.trx /p:DebugType=full src\NetMQ.Tests\NetMQ.Tests.csproj" -filter:"+[NetMQ*]* -[NetMQ.Tests*]*" -output:".\NetMQ_coverage.xml" -oldStyle
49
+ OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --no-build --configuration Release -f net6.0 --logger:trx;LogFileName=results.trx /p:DebugType=full src\NetMQ.Tests\NetMQ.Tests.csproj" -filter:"+[NetMQ*]* -[NetMQ.Tests*]*" -output:".\NetMQ_coverage.xml" -oldStyle
36
50
codecov -f "NetMQ_coverage.xml"
37
-
38
-
39
-
0 commit comments