Skip to content

chore: homogenize CI workflow with Vue stack#3123

Merged
PierreBrisorgueil merged 3 commits intomasterfrom
chore/homogenize-ci-workflow
Feb 18, 2026
Merged

chore: homogenize CI workflow with Vue stack#3123
PierreBrisorgueil merged 3 commits intomasterfrom
chore/homogenize-ci-workflow

Conversation

@PierreBrisorgueil
Copy link
Contributor

Summary

Aligns the Node CI workflow with the Vue stack structure.

  • Rename job buildtest
  • npm inpm install
  • Upload coverage to Codecov only on node 22.x — avoids duplicate reports when the matrix runs multiple Node versions

Bug fix (Vue alignment)

Vue uses if: matrix.node-version == 'lts/*' but the matrix declares [22.x, 24.x] — this condition never matches so coverage is never uploaded. This PR uses == '22.x' which correctly targets one run in the matrix.

Test plan

  • Verify CI runs on both Node 22.x and 24.x with MongoDB 7.0
  • Verify Codecov report is uploaded exactly once (from the 22.x run)

- Rename job build -> test (aligned with Vue)
- npm i -> npm install (aligned with Vue)
- Upload coverage to Codecov only on node 22.x to avoid duplicate reports
  (fixes Vue's broken lts/* condition which never matched explicit versions)
Copilot AI review requested due to automatic review settings February 18, 2026 07:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Aligns the repository’s GitHub Actions CI workflow with the Vue stack conventions, while ensuring Codecov coverage is uploaded exactly once per matrix run.

Changes:

  • Renamed the workflow job from build to test.
  • Replaced npm i with npm install in the CI step.
  • Uploads Codecov coverage only for the 22.x Node matrix entry to avoid duplicate uploads and fix the previously non-matching condition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Node: explicit 22.x/24.x -> lts/* (auto-resolves, no manual updates needed)
- MongoDB: keep 7.0 LTS, remove matrix (single version)
- Drop matrix entirely since there is now a single combination
- Codecov runs unconditionally (single job, no duplicate risk)
Copilot AI review requested due to automatic review settings February 18, 2026 07:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +10 to +18
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/*
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.
Comment on lines 29 to +33
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: pierreb-devkit/Node
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.
Comment on lines +15 to +23
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: lts/*
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'
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.
@PierreBrisorgueil PierreBrisorgueil merged commit 6f29519 into master Feb 18, 2026
8 checks passed
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

Comments