diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2713add..505e49e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,4 +27,10 @@ jobs: run: dotnet build --no-restore --configuration Release - name: Test - run: dotnet test --no-build --configuration Release --filter "FullyQualifiedName!~GcpSecretManager" + run: dotnet test --no-build --configuration Release --filter "FullyQualifiedName!~GcpSecretManager" --collect:"XPlat Code Coverage" --results-directory ./coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./coverage diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..60b5460 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,16 @@ +coverage: + status: + project: + default: + target: auto + threshold: 1% + patch: + default: + target: auto + threshold: 5% + +comment: + layout: "reach,diff,flags,tree" + behavior: default + require_changes: false + hide_project_coverage: false