perf: name internal benchmark properly
[poolifier.git] / .github / workflows / benchmark.yml
CommitLineData
93874800
JB
1name: Benchmark
2
3on:
f1c674cd
JB
4 push:
5 branches:
6 - master
7
8permissions:
9 contents: write
10 deployments: write
93874800
JB
11
12jobs:
13 internal-benchmark:
4ce23281 14 if: github.repository == 'poolifier/poolifier'
f1c674cd
JB
15 name: Internal benchmark
16 runs-on: ubuntu-latest
93874800
JB
17 steps:
18 - name: Checkout
19 uses: actions/checkout@v4
93874800
JB
20 - name: Setup pnpm
21 uses: pnpm/action-setup@v2
22 with:
23 version: 8
f1c674cd 24 - name: Setup Node.js
93874800
JB
25 uses: actions/setup-node@v3
26 with:
f1c674cd 27 node-version: '18.x'
93874800 28 cache: 'pnpm'
f1c674cd 29 - name: Install dependencies
93874800 30 run: pnpm install --ignore-scripts
f1c674cd
JB
31 - name: Run production benchmark
32 run: pnpm benchmark:prod | tee ./benchmarks/internal/output.txt
33 - name: Store production benchmark result
34 uses: benchmark-action/github-action-benchmark@v1
35 with:
36 name: Internal benchmark
37 tool: 'benchmarkjs'
38 output-file-path: ./benchmarks/internal/output.txt
2a87030e 39 github-token: ${{ secrets.BENCHMARK_RESULTS_TOKEN }}
f1c674cd
JB
40 auto-push: true
41 alert-threshold: '200%'
42 comment-on-alert: true
43 fail-on-alert: true
44 gh-repository: 'github.com/poolifier/benchmark-results'