mirror of
https://github.com/n8n-io/n8n.git
synced 2026-12-04 00:30:34 +00:00
build: Drop Node 24 support and run master CI on Node 26 (no-changelog) (#45914)
This commit is contained in:
1 parent
3820977f71
commit
83ae5f21b6
12 files changed
+44
-48
No files matched your search
@@ -66,7 +66,7 @@ body:
|
||||
id: nodejs-version
|
||||
attributes:
|
||||
label: Node.js Version
|
||||
placeholder: ex. 24.0.0
|
||||
placeholder: ex. 26.0.0
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
|
||||
@@ -523,8 +523,7 @@ ci-pr-quality.yml
|
||||
|
||||
ci-master.yml
|
||||
├──────────────────────────▶ test-unit-reusable.yml
|
||||
├──────────────────────────▶ test-linting-reusable.yml
|
||||
└──────────────────────────▶ test-single-instance-npm.yml
|
||||
└──────────────────────────▶ test-linting-reusable.yml
|
||||
|
||||
release-publish.yml
|
||||
├──────────────────────────▶ docker-build-push.yml
|
||||
@@ -726,11 +725,9 @@ Runs on push to `master`:
|
||||
```
|
||||
Push to master
|
||||
├─ build-and-format (Blacksmith: build, then format check; populate master cache)
|
||||
├─ unit-test (matrix: Node 24.22.2, and `NODE_VERSION` of `docker/docker-bake.hcl`)
|
||||
│ └─ Coverage only on 24.22.2
|
||||
├─ unit-test (`NODE_VERSION` of `docker/docker-bake.hcl`, with coverage and PR backend cache warming)
|
||||
├─ lint
|
||||
├─ performance (CodSpeed benchmarks)
|
||||
├─ verify-single-instance-npm (advisory; packages changed by this push)
|
||||
└─ notify-on-failure (Slack #alerts-build)
|
||||
```
|
||||
|
||||
@@ -949,7 +946,7 @@ Scripts in `.github/scripts/`:
|
||||
| `link-check/check-report.mjs` | Decide which lychee failures are broken links | `test-link-check-weekly.yml` |
|
||||
| `send-build-stats.mjs` | Build telemetry | `setup-nodejs` action |
|
||||
| `resolve-pnpm-version.mjs` | Publish the pinned pnpm version and its executable cache key | `setup-nodejs` action |
|
||||
| `resolve-node-version.mjs` | Publish the Node version of a job: the requested one, or `NODE_VERSION` of `docker/docker-bake.hcl`. Its test fails when a workflow or action pins a full version of the same Node major | `setup-nodejs` action, `util-probe-npm-oidc-exchange.yml` |
|
||||
| `resolve-node-version.mjs` | Publish the Node version of a job: the requested one, or `NODE_VERSION` of `docker/docker-bake.hcl`. Its test fails when a workflow or action pins a full version of the same Node major | `setup-nodejs` action, `release-standalone-package.yml`, `util-probe-npm-oidc-exchange.yml` |
|
||||
| `nightly-sbom-context.mjs` | Resolve the source SHA and image tag for nightly SBOM validation | `test-sbom-nightly.yml` |
|
||||
| `db-test-matrix.mjs` | DB test matrix from `postgres-versions.json` | `ci-pull-requests.yml` |
|
||||
| `find-last-green-commit.mjs` | Newest PR commit that passed the current workflow, for incremental PR runs | `ci-pull-requests.yml` |
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "workflow-scripts",
|
||||
"engines": {
|
||||
"node": ">=24.0.0",
|
||||
"node": ">=26.0.0",
|
||||
"pnpm": ">=12.4.2"
|
||||
},
|
||||
"packageManager": "pnpm@12.4.2",
|
||||
|
||||
@@ -37,16 +37,10 @@ jobs:
|
||||
unit-test:
|
||||
name: Unit tests
|
||||
uses: ./.github/workflows/test-unit-reusable.yml
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node: [24, 26]
|
||||
with:
|
||||
ref: ${{ github.sha }}
|
||||
# Empty uses NODE_VERSION of docker/docker-bake.hcl (Node 26).
|
||||
nodeVersion: ${{ matrix.node == 24 && '24.22.2' || '' }}
|
||||
collectCoverage: ${{ matrix.node == 24 }}
|
||||
warmPrCache: ${{ matrix.node == 26 }}
|
||||
collectCoverage: true
|
||||
warmPrCache: true
|
||||
secrets: inherit
|
||||
|
||||
lint:
|
||||
@@ -63,16 +57,6 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.sha }}
|
||||
|
||||
# Scoped to the packages this push touched, so it stays cheap enough to run on every commit.
|
||||
verify-single-instance-npm:
|
||||
name: Verify single-instance deps (npm-install)
|
||||
uses: ./.github/workflows/test-single-instance-npm.yml
|
||||
permissions:
|
||||
contents: read
|
||||
with:
|
||||
scope: changed
|
||||
base-ref: ${{ github.event.before }}
|
||||
|
||||
notify-on-failure:
|
||||
name: Notify Slack on failure
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -64,10 +64,14 @@ jobs:
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
|
||||
|
||||
- name: Resolve Node.js version
|
||||
id: node-version
|
||||
run: node .github/scripts/resolve-node-version.mjs
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: '24.22.2'
|
||||
node-version: ${{ steps.node-version.outputs.version }}
|
||||
|
||||
# A version bump only edits one package.json, so no workspace install/build
|
||||
# is needed. `pnpm ls -r --only-projects` reads the workspace config directly.
|
||||
|
||||
@@ -78,10 +78,9 @@ jobs:
|
||||
name: Backend Unit Tests
|
||||
runs-on: ${{ vars.RUNNER_PROVIDER == 'github' && 'ubuntu-latest' || 'blacksmith-4vcpu-bmi-n8n' }}
|
||||
env:
|
||||
COVERAGE_ENABLED: ${{ inputs.warmPrCache || inputs.collectCoverage }}
|
||||
COVERAGE_SCOPE: ${{ inputs.warmPrCache && 'changed-files' || (inputs.collectCoverage && inputs.changedFiles != '' && 'changed-files' || 'all') }}
|
||||
COVERAGE_ENABLED: ${{ inputs.collectCoverage }}
|
||||
AFFECTED_PACKAGES: ${{ inputs.affectedPackages }}
|
||||
CHANGED_FILES: ${{ inputs.warmPrCache && '.github/cache-warm' || inputs.changedFiles }}
|
||||
CHANGED_FILES: ${{ inputs.changedFiles }}
|
||||
steps:
|
||||
- uses: useblacksmith/checkout@bcec731f1eb1367240608d1c889a75b96db6ec53 # v1.5.0
|
||||
with:
|
||||
@@ -92,13 +91,6 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ inputs.nodeVersion }}
|
||||
|
||||
# Confluent publishes prebuilds up to Node 24 only.
|
||||
- name: Verify Kafka native binding installed
|
||||
if: startsWith(inputs.nodeVersion, '24.')
|
||||
env:
|
||||
NODES_BASE_PACKAGE_JSON: packages/nodes-base/package.json
|
||||
run: node .github/scripts/docker/kafka-native-smoke-check.mjs
|
||||
|
||||
# cli is excluded: a dedicated sharded job below runs its scoped variant.
|
||||
# nodes-base is excluded too: it has its own (change-scoped) unit-test-nodes
|
||||
# job, so its `test:unit` script must only run in the full nightly, not here.
|
||||
@@ -142,7 +134,7 @@ jobs:
|
||||
name: backend-unit-tests
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
if: env.COVERAGE_ENABLED == 'true' && !inputs.warmPrCache
|
||||
if: env.COVERAGE_ENABLED == 'true'
|
||||
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
@@ -150,6 +142,16 @@ jobs:
|
||||
name: backend-unit
|
||||
files: ./packages/**/coverage/lcov.info
|
||||
|
||||
# PR runs hash COVERAGE_SCOPE=changed-files, so warm those cache entries
|
||||
# after full-coverage uploads finish on the same already-built runner.
|
||||
- name: Warm PR test cache
|
||||
if: inputs.warmPrCache
|
||||
env:
|
||||
COVERAGE_ENABLED: 'true'
|
||||
COVERAGE_SCOPE: changed-files
|
||||
CHANGED_FILES: .github/cache-warm
|
||||
run: node packages/quality/testing/janitor/dist/cli.js test-run --full-task=test:unit --continue --concurrency=2 --filter='!./packages/frontend/**' --filter='!./packages/modules/*/frontend' --filter='!n8n' --filter='!n8n-nodes-base' --filter='!@n8n/rig'
|
||||
|
||||
unit-test-cli:
|
||||
name: CLI Unit Tests (${{ matrix.shard }}/2)
|
||||
runs-on: ${{ vars.RUNNER_PROVIDER == 'github' && 'ubuntu-latest' || 'blacksmith-4vcpu-bmi-n8n' }}
|
||||
@@ -203,10 +205,9 @@ jobs:
|
||||
name: Backend Integration Tests
|
||||
runs-on: ${{ vars.RUNNER_PROVIDER == 'github' && 'ubuntu-latest' || 'blacksmith-4vcpu-bmi-n8n' }}
|
||||
env:
|
||||
COVERAGE_ENABLED: ${{ inputs.warmPrCache || inputs.collectCoverage }}
|
||||
COVERAGE_SCOPE: ${{ inputs.warmPrCache && 'changed-files' || (inputs.collectCoverage && inputs.changedFiles != '' && 'changed-files' || 'all') }}
|
||||
COVERAGE_ENABLED: ${{ inputs.collectCoverage }}
|
||||
AFFECTED_PACKAGES: ${{ inputs.affectedPackages }}
|
||||
CHANGED_FILES: ${{ inputs.warmPrCache && '.github/cache-warm' || inputs.changedFiles }}
|
||||
CHANGED_FILES: ${{ inputs.changedFiles }}
|
||||
steps:
|
||||
- uses: useblacksmith/checkout@bcec731f1eb1367240608d1c889a75b96db6ec53 # v1.5.0
|
||||
with:
|
||||
@@ -247,7 +248,7 @@ jobs:
|
||||
name: backend-integration-tests
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
if: env.COVERAGE_ENABLED == 'true' && !inputs.warmPrCache
|
||||
if: env.COVERAGE_ENABLED == 'true'
|
||||
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
@@ -255,6 +256,16 @@ jobs:
|
||||
name: backend-integration
|
||||
files: ./packages/**/coverage/lcov.info
|
||||
|
||||
# PR runs hash COVERAGE_SCOPE=changed-files, so warm those cache entries
|
||||
# after full-coverage uploads finish on the same already-built runner.
|
||||
- name: Warm PR test cache
|
||||
if: inputs.warmPrCache
|
||||
env:
|
||||
COVERAGE_ENABLED: 'true'
|
||||
COVERAGE_SCOPE: changed-files
|
||||
CHANGED_FILES: .github/cache-warm
|
||||
run: node packages/quality/testing/janitor/dist/cli.js test-run --full-task=test:integration --continue --concurrency=1 --filter='!./packages/frontend/**' --filter='!./packages/modules/*/frontend' --filter='!n8n'
|
||||
|
||||
integration-test-cli:
|
||||
name: CLI Integration Tests (${{ matrix.shard }}/2)
|
||||
runs-on: ${{ vars.RUNNER_PROVIDER == 'github' && 'ubuntu-latest' || 'blacksmith-4vcpu-bmi-n8n' }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ARG NODE_VERSION=24.22.2
|
||||
ARG NODE_VERSION=26.13.0
|
||||
|
||||
FROM node:${NODE_VERSION}-alpine3.24
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
"version": "3.5.0",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=24.0.0",
|
||||
"node": ">=26.0.0",
|
||||
"pnpm": ">=12.4.2"
|
||||
},
|
||||
"packageManager": "pnpm@12.4.2",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"version": "1.5.0",
|
||||
"description": "AI agent SDK for n8n's code-first execution engine",
|
||||
"engines": {
|
||||
"node": ">=24.0.0"
|
||||
"node": ">=26.0.0"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
"workflow"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=24.0.0"
|
||||
"node": ">=26.0.0"
|
||||
},
|
||||
"files": [
|
||||
"bin",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM node:24.22.2 AS base
|
||||
FROM node:26.13.0 AS base
|
||||
|
||||
# Install required dependencies
|
||||
RUN apt-get update && apt-get install -y gnupg2 curl
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"watch": "tsc-watch -p tsconfig.build.json --onCompilationComplete \"tsc-alias -p tsconfig.build.json\""
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=24.0.0"
|
||||
"node": ">=26.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"automate",
|
||||
|
||||
Reference in new issue
Block a user