Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/express-hybrid...
[poolifier.git] / .github / workflows / internal-benchmark.yml
CommitLineData
27c3ac59 1name: Internal benchmark
93874800
JB
2
3on:
2fe46fd0 4 workflow_dispatch:
f1c674cd
JB
5 push:
6 branches:
7 - master
8
9permissions:
10 contents: write
11 deployments: write
93874800
JB
12
13jobs:
14 internal-benchmark:
4ce23281 15 if: github.repository == 'poolifier/poolifier'
9c15b7f2 16 runs-on: [self-hosted, internal-benchmark]
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
1a74101b 44 max-items-in-chart: 100
f1c674cd 45 gh-repository: 'github.com/poolifier/benchmark-results'