Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,27 @@ on:
branches: [master]

jobs:
build:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x, 24.x]
mongodb-version: ['7.0']

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: lts/*
Comment on lines +10 to +18
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow no longer runs a Node.js matrix: the strategy.matrix block was removed and actions/setup-node is pinned to lts/*, so CI will only test a single Node version (whatever is current LTS) rather than both 22.x and 24.x as described in the PR. Re-introduce the matrix and set node-version from matrix.node-version so both versions are exercised.

Copilot uses AI. Check for mistakes.
cache: 'npm'
- name: Start Mongo ${{ matrix.mongodb-version }}
- name: Start MongoDB LTS
uses: supercharge/mongodb-github-action@1.12.1
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-version: '7.0'
Comment on lines +15 to +23
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The step display names say "LTS" ("Use Node.js LTS" / "Start MongoDB LTS"), but Node is configured via lts/* while MongoDB is pinned to '7.0'. Consider renaming these steps to reflect the actual versions being used (or switch Mongo to an LTS selector if that’s the intent) to avoid confusion when debugging CI logs.

Copilot uses AI. Check for mistakes.
- name: Run tests
run: |
npm i
npm install
npm run lint
npm run test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: pierreb-devkit/Node
Comment on lines 29 to +33
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Codecov upload step is unconditional and is no longer tied to a specific Node version. If you restore the Node matrix (per PR description), this will upload coverage for every matrix run and reintroduce duplicate reports; add an if: guard to run only for the intended Node version (e.g., 22.x).

Copilot uses AI. Check for mistakes.