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"