ci: Bound turbo concurrency against the Node heap cap on Lint and (#37227)

Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
n8n-cat-bot[bot]
2026-08-27 20:26:01 +00:00
committed by GitHub
parent 54b2b94d56
commit ea85afe354
3 changed files with 10 additions and 4 deletions
+6 -2
View File
@@ -218,7 +218,9 @@ jobs:
runs-on: ${{ vars.RUNNER_PROVIDER == 'github' && 'ubuntu-latest' || 'blacksmith-4vcpu-ubuntu-2204' }}
needs: install-and-build
env:
NODE_OPTIONS: --max-old-space-size=7168
# Inherited by every worker turbo spawns, so the real budget is
# concurrency x cap: 2 x 6 GB fits the runner's 15.2 GB.
NODE_OPTIONS: --max-old-space-size=6144
steps:
- uses: useblacksmith/checkout@41cdeedae8edb2e684ba22896a5fd2a3cb85db6b # v1
with:
@@ -227,7 +229,9 @@ jobs:
- name: Setup Node.js
uses: ./.github/actions/setup-nodejs
with:
build-command: pnpm typecheck
# turbo directly, not the root `typecheck` script, to keep the
# concurrency bound CI-only.
build-command: pnpm turbo typecheck --concurrency=2
lint:
name: Lint
+3 -1
View File
@@ -15,7 +15,9 @@ on:
default: 26.5.1
env:
NODE_OPTIONS: --max-old-space-size=7168
# Inherited by every worker turbo spawns, so the real budget is
# concurrency x cap: lint:ci runs 2 x 6 GB, fitting the runner's 15.2 GB.
NODE_OPTIONS: --max-old-space-size=6144
jobs:
lint:
+1 -1
View File
@@ -45,7 +45,7 @@
"lint:styles:fix": "turbo run lint:styles:fix",
"lint:affected": "turbo run lint --affected",
"lint:fix": "turbo run lint:fix",
"lint:ci": "turbo run lint lint:styles --concurrency=4 --cache=local:r,remote:r && pnpm boundaries:check && pnpm check:workspace-private-deps",
"lint:ci": "turbo run lint lint:styles --concurrency=2 --cache=local:r,remote:r && pnpm boundaries:check && pnpm check:workspace-private-deps",
"boundaries": "turbo boundaries",
"boundaries:check": "node scripts/check-boundaries.mjs",
"boundaries:baseline": "node scripts/check-boundaries.mjs --write",