build: lower the Node engines floor to 22.18

This commit is contained in:
imccyu
2026-07-06 11:46:10 +08:00
parent e477d76199
commit f33e14ff19
20 changed files with 94 additions and 39 deletions

View File

@@ -95,13 +95,13 @@ jobs:
node-compat:
runs-on: ubuntu-latest
name: node 26
name: node ${{ matrix.node }}
env:
DSH_GATE_CONCURRENCY: '2'
strategy:
fail-fast: false
matrix:
node: [26]
node: ['22.18', 24, 26]
steps:
- uses: actions/checkout@v6

View File

@@ -49,6 +49,17 @@ permissions:
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The keyless ci.yml matrix runs the MOCK adapter (dsh-llm-replay); the
# real fetch + SSE-streaming adapter path runs ONLY here, so its
# node-version compat is covered nowhere else. Run the real-API suite on
# the engines floor AND the primary line to close that gap. 26 is left to
# the keyless matrix — floor + LTS is the meaningful pair for the live
# network path, and inference is cheap (we are DeepSeek).
node: ['22.18', 24]
name: e2e node ${{ matrix.node }}
# Run on every trusted event. Skip untrusted PRs (forks + Dependabot) where
# the secret is withheld — they would otherwise hard-fail the preflight.
if: >-
@@ -62,7 +73,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 24
node-version: ${{ matrix.node }}
- name: Enable corepack (pnpm)
run: corepack enable