From a338a994ee10081a73c0c2ba2a09c08bef421174 Mon Sep 17 00:00:00 2001 From: Mikhail Fedosov Date: Tue, 28 Oct 2025 20:00:43 +0400 Subject: [PATCH] feat: Add Codecov integration to CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Codecov upload step to GitHub Actions workflow using codecov-action@v5 - Create codecov.yml configuration with informational coverage tracking - Configure coverage precision, ignore patterns for test files - Use global upload token from GitHub secrets (CODECOV_TOKEN) - Set fail_ci_if_error to false to avoid blocking CI on upload failures 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/ci.yml | 9 +++++++++ codecov.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 codecov.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5c9385..2331542 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,3 +38,12 @@ jobs: name: coverage-report path: coverage/ retention-days: 30 + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage/coverage-final.json + flags: unittests + name: codecov-umbrella + fail_ci_if_error: false diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..5e5484e --- /dev/null +++ b/codecov.yml @@ -0,0 +1,30 @@ +codecov: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "70...100" + + status: + project: + default: + target: auto + threshold: 0% + informational: true + patch: + default: + target: auto + threshold: 0% + informational: true + +comment: + layout: "reach,diff,flags,files,footer" + behavior: default + require_changes: no + +ignore: + - "**/__tests__/**" + - "**/*.test.js" + - "**/setupTests.js" + - "src/reportWebVitals.js"