mirror of https://github.com/dapr/dotnet-sdk.git
Added codecov integration (#436)
This commit is contained in:
parent
731234e38d
commit
ab3f45e7e1
|
@ -0,0 +1,10 @@
|
|||
coverage:
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
# basic
|
||||
target: auto
|
||||
threshold: 0%
|
||||
|
||||
ignore:
|
||||
- test # - tests
|
|
@ -27,10 +27,13 @@ jobs:
|
|||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.301
|
||||
- name: Test solution - release
|
||||
run: |
|
||||
unset GITHUB_ACTIONS #disable deterministic builds, just for test run. Deterministic builds break coverage for some reason
|
||||
dotnet test test/test.sln --configuration release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
|
||||
dotnet clean # remove the artifacts so they can be rebuild with deterministic builds enabled
|
||||
- name: Build solution - release
|
||||
run: dotnet build all.sln --configuration release
|
||||
- name: Test solution - release
|
||||
run: dotnet test test/test.sln --configuration release
|
||||
- name: Generate Nuget Packages - release
|
||||
run: dotnet pack src/prod.sln --configuration release
|
||||
- name: upload artifacts
|
||||
|
@ -38,6 +41,8 @@ jobs:
|
|||
with:
|
||||
name: release_drop
|
||||
path: ${{ env.NUPKG_OUTDIR }}
|
||||
- name: Upload test coverage
|
||||
uses: codecov/codecov-action@v1
|
||||
- name: Publish binaries to github for tags
|
||||
if: startswith(github.ref, 'refs/tags/v')
|
||||
run: |
|
||||
|
|
|
@ -4,6 +4,7 @@ Dapr is a portable, event-driven, serverless runtime for building distributed ap
|
|||
|
||||
[](https://github.com/dapr/dotnet-sdk/actions?workflow=build)
|
||||
[](https://gitter.im/Dapr/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||
[](https://codecov.io/gh/dapr/dotnet-sdk)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
|
||||
- [dapr.io](https://dapr.io)
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="FluentAssertions" Version="5.9.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
|
||||
<PackageReference Include="Moq" Version="4.13.1" />
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="FluentAssertions" Version="5.9.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="3.0.0" />
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="FluentAssertions" Version="5.9.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="FluentAssertions" Version="5.9.0" />
|
||||
<PackageReference Include="Google.Protobuf" Version="3.13.0" />
|
||||
<PackageReference Include="Grpc.Core.Testing" Version="2.32.0" />
|
||||
|
|
Loading…
Reference in New Issue