Update dependency vitest to v2.1.2 #509
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Benchmarks | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- 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@v2 | |
with: | |
# Cannot upgrade due to https://github.com/oven-sh/bun/issues/8314 | |
bun-version: 1.0.23 | |
- name: Run | |
run: | | |
hyperfine --warmup 1 \ | |
'yarn workspace bun test' \ | |
'yarn workspace jasmine test' \ | |
'yarn workspace jest test' \ | |
'yarn workspace vitest test --poolOptions.threads.isolate=false' \ | |
'yarn workspace tape test' |