n8n/.github/workflows/test-bench-reusable.yml
Declan Carroll fb7590db16
Some checks are pending
CI: Master (Build, Test, Lint) / Build for Github Cache (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (24.18.1) (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (26.5.1) (push) Waiting to run
CI: Master (Build, Test, Lint) / Lint (push) Waiting to run
CI: Master (Build, Test, Lint) / Performance (push) Waiting to run
CI: Master (Build, Test, Lint) / Verify single-instance deps (npm-install) (push) Waiting to run
CI: Master (Build, Test, Lint) / Notify Slack on failure (push) Blocked by required conditions
ci: Update Blacksmith checkout to v1.5.0 (#37898)
2026-09-07 05:13:25 +00:00

44 lines
1.2 KiB
YAML

name: 'Test: Benchmarks'
run-name: 'Test: Benchmarks (${{ inputs.ref || github.ref_name }})'
on:
workflow_call:
inputs:
ref:
description: GitHub ref to test.
required: false
type: string
default: ''
workflow_dispatch:
inputs:
ref:
description: Branch or ref to benchmark (defaults to the workflow's branch).
required: false
type: string
default: ''
env:
NODE_OPTIONS: --max-old-space-size=6144
jobs:
bench:
name: Benchmarks
if: github.repository == 'n8n-io/n8n'
runs-on: ${{ vars.RUNNER_PROVIDER == 'github' && 'ubuntu-latest' || 'blacksmith-2vcpu-ubuntu-2204' }}
steps:
- uses: useblacksmith/checkout@bcec731f1eb1367240608d1c889a75b96db6ec53 # v1.5.0
with:
ref: ${{ inputs.ref }}
- name: Setup Node.js
uses: ./.github/actions/setup-nodejs
with:
# @codspeed/core prebuilds do not load on Node 26 (removed V8 symbol).
node-version: '24.18.1'
- name: Run benchmarks
uses: CodSpeedHQ/action@281164b0f014a4e7badd2c02cecad9b595b70537 # v4.11.1
with:
mode: simulation
run: CODSPEED=true pnpm --filter=@n8n/performance bench