-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 929 Bytes
/
benchmark.yml
File metadata and controls
40 lines (37 loc) · 929 Bytes
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
name: Benchmark
on:
workflow_dispatch:
inputs:
ref:
description: 'Git ref to benchmark'
required: false
default: 'main'
permissions:
contents: read
jobs:
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.ref }}
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- run: npm run bench | tee bench-results.txt
- uses: actions/upload-artifact@v7
with:
name: bench-results-${{ inputs.ref }}
path: bench-results.txt
retention-days: 30
- name: Append to job summary
run: |
{
echo '### Benchmark results (`${{ inputs.ref }}`)'
echo '```'
cat bench-results.txt
echo '```'
} >> "$GITHUB_STEP_SUMMARY"