-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (31 loc) · 934 Bytes
/
benchmark.yaml
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
name: Run Benchmarks
on:
workflow_dispatch:
push:
branches:
- master
- vitest-failures
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install
run: |
# Install dependencies
yarn install --immutable
# Install hyperfine
wget https://github.com/sharkdp/hyperfine/releases/download/v1.18.0/hyperfine_1.18.0_amd64.deb
sudo dpkg -i hyperfine_1.18.0_amd64.deb
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
# Cannot upgrade due to https://github.com/oven-sh/bun/issues/8314
bun-version: 1.0.23
- name: Run
run: |
hyperfine --show-output --warmup 1 'yarn workspace vitest test --poolOptions.threads.isolate=false'