feat: improve cool down #121
This file contains hidden or 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: Benchmark | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
merge_group: | |
workflow_dispatch: | |
jobs: | |
benchmark: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
os: [macos-15] | |
# Failed to run Vite on Windows | |
# os: [macos-15, windows-latest] | |
case: [small, medium, large] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install Pnpm | |
run: | | |
npm i -g corepack@latest -g --force && corepack enable | |
npm i cross-env -g | |
- name: Install Dependencies | |
run: pnpm install && npx puppeteer browsers install chrome | |
- name: Run Benchmark | |
run: cross-env CASE=${{ matrix.case }} pnpm benchmark |