Skip to content

feat: Add Codecov integration to CI workflow#5

Merged
fedosov merged 1 commit into
mainfrom
feat/add-codecov-integration
Oct 28, 2025
Merged

feat: Add Codecov integration to CI workflow#5
fedosov merged 1 commit into
mainfrom
feat/add-codecov-integration

Conversation

@fedosov
Copy link
Copy Markdown
Contributor

@fedosov fedosov commented Oct 28, 2025

Summary

Integrates Codecov coverage reporting into the existing GitHub Actions CI workflow. This enables automated code coverage tracking and reporting on pull requests.

Changes

  • Updated .github/workflows/ci.yml: Added Codecov upload step using codecov/codecov-action@v5 after test execution
  • Created codecov.yml: Configuration file with:
    • Informational coverage tracking (no failure thresholds)
    • 2 decimal precision for coverage percentages
    • Automatic PR comments with coverage diff
    • Test file exclusions from coverage calculations

Configuration Details

  • Uses global upload token via CODECOV_TOKEN GitHub secret
  • Uploads coverage-final.json generated by Jest
  • Set fail_ci_if_error: false to prevent CI failures on Codecov upload issues
  • Flags coverage as unittests for organization

Manual Setup Required

Action needed: Add CODECOV_TOKEN secret to repository:

  1. Generate global upload token in Codecov dashboard (requires org admin)
  2. Go to Repository Settings → Secrets and variables → Actions
  3. Add secret named CODECOV_TOKEN with token value

Test Results

All existing tests pass (9 test suites, 122 tests):

  • ✅ data-normalizer.test.js
  • ✅ decimal-converter.test.js
  • ✅ error-parser.test.js
  • ✅ event-parser.test.js
  • ✅ network-switcher.test.js
  • ✅ bridge-filter.test.js
  • ✅ settings-consistency.test.js
  • ✅ fetch-last-transfers.test.js
  • ✅ retry-with-fallback.test.js

🤖 Generated with Claude Code

- 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 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 28, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@fedosov fedosov merged commit 5ed91c8 into main Oct 28, 2025
3 checks passed
@fedosov fedosov deleted the feat/add-codecov-integration branch October 28, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant