Skip to content

Commit e264bd3

Browse files
release: v0.0.7 - bump Node CI matrix for vitest 5 (max→26, min→22.12.0) (#23)
1 parent eeda35b commit e264bd3

5 files changed

Lines changed: 258 additions & 356 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,31 @@ updates:
6868
commit-message:
6969
prefix: "deps"
7070
groups:
71+
# vitest and @vitest/coverage-v8 (and other @vitest/* packages) peer
72+
# each other exactly, so bumping one without the other breaks
73+
# `npm ci` with an ERESOLVE. Bump the whole family together in one
74+
# PR. Must come before security/patch/minor below — Dependabot
75+
# assigns each update to the FIRST matching group.
76+
vitest:
77+
patterns:
78+
- "vitest"
79+
- "@vitest/*"
80+
# @eslint/js peers eslint with a major-locked range ("^10.0.0"), so a
81+
# future eslint major bump without @eslint/js moving too would hit
82+
# the same npm ci ERESOLVE class as the vitest/coverage-v8 split.
83+
# @cldmv/eslint-plugin-jsonv doesn't peer eslint directly but is
84+
# bundled here to keep the lint-config family moving together.
85+
eslint:
86+
patterns:
87+
- "eslint"
88+
- "@eslint/*"
89+
- "@cldmv/eslint-plugin-*"
90+
# @cldmv/prettier-plugin-jsonv peers prettier with a major-locked
91+
# range ("^3.0.0") — same reasoning as the eslint group above.
92+
prettier:
93+
patterns:
94+
- "prettier"
95+
- "@cldmv/prettier-plugin-*"
7196
security:
7297
applies-to: security-updates
7398
patterns: ["*"]

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ on:
5454
required: false
5555
default: "lts/*"
5656
min_node_version:
57-
description: "Minimum Node.js version for matrix testing (default: 20, oldest non-EOL)"
57+
description: "Minimum Node.js version for matrix testing (default: 22.12.0 — the floor vitest 5 actually runs on)"
5858
type: string
5959
required: false
60-
default: "20"
60+
default: "22.12.0"
6161
max_node_major:
62-
description: "Override max Node.js major version (default: 22)"
62+
description: "Override max Node.js major version (default: 26)"
6363
type: string
6464
required: false
65-
default: "22"
65+
default: "26"
6666
lts_only_matrix:
6767
description: "Only include even-numbered (LTS) Node.js major versions in the test matrix"
6868
type: boolean
@@ -197,8 +197,8 @@ jobs:
197197
.gitignore
198198
debug: ${{ github.event.inputs.debug == 'true' }}
199199
node_version: ${{ github.event.inputs.node_version || 'lts/*' }}
200-
min_node_version: ${{ github.event.inputs.min_node_version || '20' }}
201-
max_node_major: ${{ github.event.inputs.max_node_major || '22' }}
200+
min_node_version: ${{ github.event.inputs.min_node_version || '22.12.0' }}
201+
max_node_major: ${{ github.event.inputs.max_node_major || '26' }}
202202
# LTS-only matrix (even majors: 20, 22, 24, …) on every event. Odd majors
203203
# (21, 23, …) are non-LTS interim releases, and the native-binding test
204204
# toolchain (vitest 4 / rolldown / vite 8) excludes them via `engines`

‎.github/workflows/publish.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ on:
6060
required: false
6161
default: true
6262
min_node_version:
63-
description: "Minimum Node.js version for matrix testing (enables matrix when set)"
63+
description: "Minimum Node.js version for matrix testing (default: 22.12.0 — the floor vitest 5 actually runs on)"
6464
type: string
6565
required: false
66-
default: "20"
66+
default: "22.12.0"
6767
max_node_major:
68-
description: "Override max Node.js major version (default: 22)"
68+
description: "Override max Node.js major version (default: 26)"
6969
type: string
7070
required: false
71-
default: "22"
71+
default: "26"
7272
use_gpg:
7373
description: "Enable GPG signing (if GPG secrets provided)"
7474
type: boolean
@@ -101,8 +101,8 @@ jobs:
101101
publish_to_github_packages: false
102102
publish_command: ""
103103
github_packages_publish_command: ""
104-
min_node_version: ${{ github.event.inputs.min_node_version || '20' }}
105-
max_node_major: ${{ github.event.inputs.max_node_major || '22' }}
104+
min_node_version: ${{ github.event.inputs.min_node_version || '22.12.0' }}
105+
max_node_major: ${{ github.event.inputs.max_node_major || '26' }}
106106
test_command: "npm test" # Use defaults: NODE_ENV=development, NODE_OPTIONS=--conditions=development
107107
# test_command: "NODE_OPTIONS='--conditions=slothlet-dev' npm test" # Override NODE_OPTIONS only
108108
# test_command: "NODE_ENV=test npm test" # Override NODE_ENV only

0 commit comments

Comments
 (0)