chore: add Codecov and upgrade CI to Node 22/24 LTS and MongoDB 7#3118
chore: add Codecov and upgrade CI to Node 22/24 LTS and MongoDB 7#3118PierreBrisorgueil merged 4 commits intomasterfrom
Conversation
- Replace Coveralls with Codecov (codecov-action@v5) - Update Node.js matrix from 20.x to 22.x (LTS) and 24.x (latest) - Update MongoDB matrix from 6.0/7.0 to 7.0 (LTS only) - Bump engines.node requirement from >=20.10.0 to >=22.0.0
There was a problem hiding this comment.
Pull request overview
This pull request modernizes the CI/CD infrastructure by upgrading to newer LTS versions of Node.js and MongoDB, while migrating coverage reporting from Coveralls to Codecov. The changes align the project with current Node.js Active LTS releases (22.x) and latest LTS (24.x), drop end-of-life MongoDB 6.0, and adopt Codecov for more comprehensive coverage reporting.
Changes:
- Updated Node.js engine requirement from >=20.10.0 to >=22.0.0 in package.json
- Upgraded CI matrix to test against Node.js 22.x and 24.x (previously 20.x)
- Simplified MongoDB CI testing to MongoDB 7.0 only (removed EOL 6.0)
- Replaced Coveralls with Codecov for coverage reporting using codecov-action@v5
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| package.json | Updated Node.js engine requirement to >=22.0.0 to enforce minimum version compatibility |
| .github/workflows/CI.yml | Updated CI matrix to Node.js 22.x/24.x and MongoDB 7.0 only; replaced Coveralls with Codecov action |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Auto-detected from GitHub repository context.
- Update README: Node >= 20 LTS -> >= 22 LTS, prerequisites 20.x/22.x -> 22.x/24.x - Remove coveralls devDependency and test:coveralls script (replaced by Codecov)
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Node 22 and 24 are both tested in CI; drop the LTS qualifier to avoid version-specific confusion.
Summary
codecov-action@v5) — requires addingCODECOV_TOKENsecret in repo settings20.x→22.x(Active LTS) +24.x(latest LTS)6.0/7.0→7.0(LTS only, drops EOL 6.0)engines.nodeinpackage.json:>=20.10.0→>=22.0.0Test plan
CODECOV_TOKENsecret in GitHub repo settings (Settings → Secrets and variables → Actions)