Skip to content

Commit 412b75d

Browse files
committed
Update GitHub CI workflow
1 parent 4e4ca78 commit 412b75d

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/CI.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,47 @@ on: [push, pull_request]
44
jobs:
55
ununtu:
66
runs-on: ubuntu-latest
7+
env:
8+
DOTNET_NOLOGO: true
79
steps:
810
- uses: actions/checkout@v2
11+
- uses: actions/setup-dotnet@v1
12+
with:
13+
dotnet-version: |
14+
3.1.x
15+
6.0.x
916
- run: dotnet restore src/NetMQ.sln
1017
- name: build
1118
run: dotnet build src/NetMQ.sln /p:Configuration=Release /verbosity:minimal
1219
- name: test netcoreapp3.1
1320
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
1623
windows:
1724
runs-on: windows-latest
25+
env:
26+
DOTNET_NOLOGO: true
1827
steps:
1928
- uses: actions/checkout@v2
29+
- uses: actions/setup-dotnet@v1
30+
with:
31+
dotnet-version: |
32+
3.1.x
33+
6.0.x
2034
- name: Install codecov
2135
run: |
2236
choco install opencover.portable
2337
choco install codecov
2438
- run: dotnet restore src/NetMQ.sln
2539
- name: build
2640
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
2943
- name: test netcoreapp3.1
3044
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f netcoreapp3.1 src\NetMQ.Tests\NetMQ.Tests.csproj
3145
- name: test net47
3246
run: dotnet test -v n -p:ParallelizeTestCollections=false --configuration Release --no-build -f net47 src\NetMQ.Tests\NetMQ.Tests.csproj
3347
- name: coverage
3448
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
3650
codecov -f "NetMQ_coverage.xml"
37-
38-
39-

0 commit comments

Comments
 (0)