-
Notifications
You must be signed in to change notification settings - Fork 7.4k
47 lines (40 loc) · 1.04 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Benchmarks
on:
push:
branches:
- '**'
pull_request:
paths:
- 'packages/cli/**'
- 'packages/core/**'
- 'packages/workflow/**'
workflow_dispatch:
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repository: n8n-io/n8n
ref: ${{ inputs.ref }}
- run: corepack enable
- name: Use Node.js ${{ inputs.nodeVersion }}
uses: actions/[email protected]
with:
node-version: ${{ inputs.nodeVersion }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
if: ${{ inputs.cacheKey == '' }}
run: pnpm build
- name: Restore cached build artifacts
if: ${{ inputs.cacheKey != '' }}
uses: actions/cache/[email protected]
with:
path: ./packages/**/dist
key: ${{ inputs.cacheKey }}
- name: Benchmark
uses: CodSpeedHQ/action@v2
with:
run: pnpm benchmark