Skip to content

Commit 410840a

Browse files
committed
Fixed github action
1 parent 1186c49 commit 410840a

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

.github/workflows/dotnet.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
run: dotnet test --no-build --logger 'trx;LogFileName=test-results.trx'
3333
- name: Collect Code Coverage
3434
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=ManagedCode.TimeSeries.Tests/lcov.info
35-
# - name : coverlet
36-
# uses: b3b00/[email protected]
37-
# with:
38-
# testProject: 'ManagedCode.TimeSeries.Tests/ManagedCode.TimeSeries.Tests.csproj'
39-
# output: 'lcov.info'
40-
# outputFormat: 'lcov'
41-
# excludes: '[program]*,[test]test.*'
42-
# - name: coveralls
43-
# uses: coverallsapp/github-action@master
44-
# with:
45-
# github-token: ${{secrets.GITHUB_TOKEN }}
46-
# path-to-lcov: ManagedCode.TimeSeries.Tests/lcov.info
35+
- name : coverlet
36+
uses: b3b00/[email protected]
37+
with:
38+
testProject: 'ManagedCode.TimeSeries.Tests/ManagedCode.TimeSeries.Tests.csproj'
39+
output: 'lcov.info'
40+
outputFormat: 'lcov'
41+
excludes: '[program]*,[test]test.*'
42+
- name: coveralls
43+
uses: coverallsapp/github-action@master
44+
with:
45+
github-token: ${{secrets.GITHUB_TOKEN }}
46+
path-to-lcov: ManagedCode.TimeSeries.Tests/lcov.info

.github/workflows/nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build
2525
run: dotnet build --configuration Release
2626
- name: Pack
27-
run: dotnet pack --configuration Release
27+
run: dotnet pack -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --configuration Release
2828

2929
- name: publish nuget packages
3030
run: |

ManagedCode.TimeSeries/ManagedCode.TimeSeries.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
<IsPackable>true</IsPackable>
99
</PropertyGroup>
1010

11+
<PropertyGroup>
12+
<CollectCoverage>true</CollectCoverage>
13+
<ExcludeByAttribute>GeneratedCodeAttribute</ExcludeByAttribute>
14+
<Exclude>[*]*.Migrations.*</Exclude>
15+
<ExcludeByFile>**/MyFile.cs</ExcludeByFile>
16+
<CoverletOutputFormat>lcov</CoverletOutputFormat>
17+
</PropertyGroup>
18+
1119
<!--NuGet-->
1220
<PropertyGroup>
1321
<Title>ManagedCode.TimeSeries</Title>

0 commit comments

Comments
 (0)