From c3dc69e6d3ce9fdc16f57802e5923e862f49e921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Recep=20=C5=9Een?= Date: Wed, 27 May 2026 08:40:37 +0300 Subject: [PATCH 1/2] ci(coverage): integrate Codecov via GitHub Actions Add XPlat Code Coverage collection to dotnet test and upload results to Codecov using codecov-action@v5 on every PR build. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 From c40f8c2fdbe8e7ba1e16d07bdd6d13f3ac2cea18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Recep=20=C5=9Een?= Date: Wed, 27 May 2026 08:54:14 +0300 Subject: [PATCH 2/2] ci(coverage): add codecov.yml with PR checks and comment config Enable project/patch status checks (auto target, 1%/5% threshold) and PR comment with reach+diff+flags+tree layout. Co-Authored-By: Claude Sonnet 4.6 --- codecov.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 codecov.yml 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