From ae86dfa8ea9101991d890d0395e947aca0495152 Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Wed, 18 Feb 2026 08:07:56 +0100 Subject: [PATCH 1/3] chore: homogenize CI workflow with Vue stack - 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) --- .github/workflows/CI.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f6827c73..aded2729 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,7 @@ on: branches: [master] jobs: - build: + test: runs-on: ubuntu-latest strategy: @@ -28,10 +28,11 @@ jobs: mongodb-version: ${{ matrix.mongodb-version }} - name: Run tests run: | - npm i + npm install npm run lint npm run test:coverage - name: Upload coverage reports to Codecov + if: matrix.node-version == '22.x' uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} From ebdb85b8e3ef3dcc9be1f19f3caae0f5f5a820b1 Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Wed, 18 Feb 2026 08:10:11 +0100 Subject: [PATCH 2/3] chore: simplify CI to LTS-only, drop matrix - 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) --- .github/workflows/CI.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index aded2729..22c26993 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,29 +10,23 @@ jobs: 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/* 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' - name: Run tests run: | npm install npm run lint npm run test:coverage - name: Upload coverage reports to Codecov - if: matrix.node-version == '22.x' uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} From 17e9fceeb9017d9fd0655cb49f1e23502e0cd70d Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Wed, 18 Feb 2026 08:11:08 +0100 Subject: [PATCH 3/3] Update CI.yml --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 22c26993..44e92fe5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,3 +30,4 @@ jobs: uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + slug: pierreb-devkit/Node