build(ci): factor out benchmarking
[poolifier.git] / .github / workflows / benchmark.yml
CommitLineData
93874800
JB
1name: Benchmark
2
3on:
4 workflow_dispatch:
5
6jobs:
7 internal-benchmark:
8 strategy:
9 matrix:
10 os: [windows-latest, macos-latest, ubuntu-latest]
11 node: ['16.x', '18.x', '20.x']
12
13 name: Internal benchmark with Node.js ${{ matrix.node }} on ${{ matrix.os }}
14
15 runs-on: ${{ matrix.os }}
16
17 steps:
18 - name: Checkout
19 uses: actions/checkout@v4
20
21 - name: Setup pnpm
22 uses: pnpm/action-setup@v2
23 with:
24 version: 8
25
26 - name: Setup Node.js ${{ matrix.node }}
27 uses: actions/setup-node@v3
28 with:
29 node-version: ${{ matrix.node }}
30 cache: 'pnpm'
31
32 - name: Install
33 run: pnpm install --ignore-scripts
34
35 - name: Build
36 run: pnpm build
37
38 - name: Benchmark
39 run: pnpm benchmark