Skip to content

Commit

Permalink
Upload coverage report to coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmada committed Jan 29, 2020
1 parent 85a9070 commit 5b6def0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
with:
dotnet-version: 3.0.101
- name: Build solution
run: dotnet build -c:Release
run: dotnet build
- name: Tests
run: dotnet test ./NetFabric.Hyperlinq.UnitTests/NetFabric.Hyperlinq.UnitTests.csproj -c:Release -f:netcoreapp3.0
run: dotnet test ./NetFabric.Hyperlinq.UnitTests/NetFabric.Hyperlinq.UnitTests.csproj -f:netcoreapp3.0

windows:
runs-on: windows-latest
Expand All @@ -30,9 +30,16 @@ jobs:
with:
dotnet-version: 3.0.101
- name: Build solution
run: dotnet build -c:Release
- name: Tests with coverage
run: dotnet test ./NetFabric.Hyperlinq.UnitTests/NetFabric.Hyperlinq.UnitTests.csproj -c:Release -p:CollectCoverage=true -p:Exclude="[xunit.*]*" -p:CoverletOutputFormat=cobertura -p:CoverletOutput="./Coverage/"
run: dotnet build
- name: Tests
run: dotnet test ./NetFabric.Hyperlinq.UnitTests/NetFabric.Hyperlinq.UnitTests.csproj
- name: Generate coverage report
run: dotnet test ./NetFabric.Hyperlinq.UnitTests/NetFabric.Hyperlinq.UnitTests.csproj -f:netcoreapp3.0 -p:CollectCoverage=true -p:CoverletOutputFormat=lcov -p:CoverletOutput=TestResults/ /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByFile="../NetFabric.Hyperlinq.Interfaces/*.cs"
- name: Publish coverage report to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./NetFabric.Hyperlinq.UnitTests/TestResults/coverage.info



Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![GitHub last commit (master)](https://img.shields.io/github/last-commit/NetFabric/NetFabric.Hyperlinq/master)](https://github.com/NetFabric/NetFabric.Hyperlinq/commits/master)
[![GitHub Workflow Status (master)](https://img.shields.io/github/workflow/status/NetFabric/NetFabric.Hyperlinq/.NET%20Core/master)](https://github.com/NetFabric/NetFabric.Hyperlinq/actions)
[![Coverage Status](https://coveralls.io/repos/github/NetFabric/NetFabric.Hyperlinq/badge.svg?branch=master)](https://coveralls.io/github/NetFabric/NetFabric.Hyperlinq?branch=master)
[![NuGet Version](https://img.shields.io/nuget/v/NetFabric.Hyperlinq.svg)](https://www.nuget.org/packages/NetFabric.Hyperlinq/)
[![NuGet Downloads](https://img.shields.io/nuget/dt/NetFabric.Hyperlinq.svg)](https://www.nuget.org/packages/NetFabric.Hyperlinq/)

Expand Down Expand Up @@ -163,6 +164,7 @@ The following open-source projects are used to build and test this project:

- [.NET](https://github.com/dotnet)
- [BenchmarkDotNet](https://benchmarkdotnet.org/)
- [coveralls](https://coveralls.io)
- [coverlet](https://github.com/tonerdo/coverlet)
- [NetFabric.Assertive](https://github.com/NetFabric/NetFabric.Assertive)
- [Uno.SourceGeneration](https://github.com/unoplatform/Uno.SourceGeneration)
Expand Down

0 comments on commit 5b6def0

Please sign in to comment.