File tree Expand file tree Collapse file tree 3 files changed +13
-21
lines changed Expand file tree Collapse file tree 3 files changed +13
-21
lines changed Original file line number Diff line number Diff line change 23
23
pwsh -file release.ps1 Release
24
24
- name : Test
25
25
shell : bash
26
- run : dotnet test Tests/CSharpCore/Tests.NetStandard.csproj --configuration Release --no-build --logger trx --collect "Code coverage" --results-directory ./TestResults
27
- - name : Test Results
28
-
29
- id : trx-parser
30
- with :
31
- TRX_PATH : ${{ github.workspace }}/TestResults # This should be the path to your TRX files
32
- REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
+ run : dotnet test Tests/CSharpCore/Tests.NetStandard.csproj --configuration Release --no-build /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov -- RunConfiguration.DisableAppDomain=true
33
27
34
28
linux :
35
29
runs-on : ubuntu-latest
51
45
pwsh -file release.ps1 Release
52
46
- name : Test
53
47
shell : bash
54
- run : dotnet test Tests/CSharpCore/Tests.NetStandard.csproj --configuration Release --no-build --logger trx --collect "Code coverage" --results-directory ./TestResults
55
- - name : Test Results
56
-
57
- id : trx-parser
58
- with :
59
- TRX_PATH : ${{ github.workspace }}/TestResults # This should be the path to your TRX files
60
- REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
+ run : dotnet test Tests/CSharpCore/Tests.NetStandard.csproj --configuration Release --no-build /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov -- RunConfiguration.DisableAppDomain=true
61
49
62
50
windows :
63
51
77
65
run : build.release.bat
78
66
- name : Test
79
67
shell : cmd
80
- run : dotnet test Tests/CSharpCore/Tests.NetStandard.csproj --configuration Release --no-build --logger trx --collect "Code coverage" --results-directory ./TestResults
81
- - name : Test Results
82
-
83
- id : trx-parser
68
+ run : dotnet test Tests/CSharpCore/Tests.NetStandard.csproj --configuration Release --no-build /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov -- RunConfiguration.DisableAppDomain=true
69
+ - name : Publish coverage report to coveralls.io
70
+ uses : coverallsapp/github-action@master
84
71
with :
85
- TRX_PATH : ${{ github.workspace }}/TestResults # This should be the path to your TRX files
86
- REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72
+ github-token : ${{ secrets.GITHUB_TOKEN }}
73
+ path-to-lcov : ${{ github.workspace }}\Tests\CSharpCore\TestResults\coverage.net6.0.info
Original file line number Diff line number Diff line change 27
27
<None Include =" sharpsnmplib.tests.snk" />
28
28
</ItemGroup >
29
29
<ItemGroup >
30
+ <PackageReference Include =" coverlet.msbuild" Version =" 3.1.0" >
31
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
32
+ <PrivateAssets >all</PrivateAssets >
33
+ </PackageReference >
30
34
<PackageReference Include =" xunit" Version =" 2.4.1" />
31
35
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.1" >
32
36
<PrivateAssets >all</PrivateAssets >
Original file line number Diff line number Diff line change 2
2
=============
3
3
[ ![ Join the chat at https://gitter.im/sharpsnmplib ] ( https://img.shields.io/gitter/room/sharpsnmplib/Lobby.svg?style=flat-square )] ( https://gitter.im/sharpsnmplib/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link )
4
4
[ ![ NuGet Version] ( https://img.shields.io/nuget/v/Lextm.SharpSnmpLib.svg?style=flat-square )] ( https://www.nuget.org/packages/Lextm.SharpSnmpLib/ )
5
- [ ![ Azure DevOps builds] ( https://img.shields.io/azure-devops/build/lextudio/08d27f27-71b2-4158-90ec-565c685b3c05/5.svg?style=flat-square )] ( https://dev.azure.com/lextudio/sharpsnmp/_build/ )
5
+ [ ![ Build] ( https://img.shields.io/github/workflow/status/lextudio/sharpsnmplib/.NET%20Core?style=flat-square )] ( https://github.com/lextudio/sharpsnmplib/actions/workflows/dotnetcore.yml )
6
+ [ ![ Coverage] ( https://img.shields.io/coveralls/github/lextudio/sharpsnmplib?style=flat-square )] ( https://coveralls.io/github/lextudio/sharpsnmplib )
6
7
7
8
This is the source code repository of #SNMP Library. Visual Studio 2019 and .NET Core SDK (for .NET Core 2.1 and above) is required to compile it on Windows.
8
9
You can’t perform that action at this time.
0 commit comments