diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51b9ad6..8fa840a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,12 +58,14 @@ jobs: run: dotnet build --no-restore -c Debug - name: Test solution [Debug] working-directory: src - run: dotnet test --no-restore -p:CollectCoverage=true + run: dotnet test --no-restore -p:CollectCoverage=true -p:CoverletOutputFormat=opencover -p:CoverletOutput=../.coverage/ - name: Upload coverage to codecov if: ${{ startsWith(matrix.os, 'ubuntu') }} uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - files: .coverage/Destructurama.ByIgnoring.Tests/coverage.net8.opencover.xml + files: src/.coverage/*.opencover.xml buildcheck: needs: diff --git a/README.md b/README.md index bca1c81..64d31fd 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![License](https://img.shields.io/github/license/destructurama/json-net) -[![codecov](https://codecov.io/gh/destructurama/json-net/branch/master/graph/badge.svg?token=0ZRHIUEQM4)](https://codecov.io/gh/destructurama/json-net) +[![codecov](https://codecov.io/gh/destructurama/json-net/graph/badge.svg?token=abGh9D57gU)](https://codecov.io/gh/destructurama/json-net) [![Nuget](https://img.shields.io/nuget/dt/Destructurama.JsonNet)](https://www.nuget.org/packages/Destructurama.JsonNet) [![Nuget](https://img.shields.io/nuget/v/Destructurama.JsonNet)](https://www.nuget.org/packages/Destructurama.JsonNet) diff --git a/src/Destructurama.JsonNet.Tests/Destructurama.JsonNet.Tests.csproj b/src/Destructurama.JsonNet.Tests/Destructurama.JsonNet.Tests.csproj index 653b46d..3a0f5d0 100644 --- a/src/Destructurama.JsonNet.Tests/Destructurama.JsonNet.Tests.csproj +++ b/src/Destructurama.JsonNet.Tests/Destructurama.JsonNet.Tests.csproj @@ -14,6 +14,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive +