diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml index 19ce60a..04adb69 100644 --- a/.github/workflows/csharp.yml +++ b/.github/workflows/csharp.yml @@ -22,9 +22,14 @@ jobs: - uses: actions/checkout@v1 with: submodules: true - - name: Test + - name: Test with Coverage run: | - dotnet test -c Release -f net8 + dotnet test -c Release -f net8 --collect:"XPlat Code Coverage" + - name: Report Coverage to Codacy + uses: codacy/codacy-coverage-reporter-action@v1.3.0 + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: '**/coverage.cobertura.xml' pushNuGetPackageToGitHubPackageRegistry: needs: test runs-on: ubuntu-latest