Migrate to bun #1187
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 @notesnook/web | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "master" | |
paths: | |
- "apps/web/**" | |
# re-run workflow if workflow file changes | |
- ".github/workflows/web.benchmarks.yml" | |
pull_request: | |
jobs: | |
bench: | |
name: Bench | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: ./.github/actions/setup-node-with-cache | |
- name: Install packages | |
run: | | |
bun ci | |
bun run bootstrap -- --scope=web | |
- name: Build | |
run: bun run build:web | |
- name: Install Playwright Browsers | |
run: bunx playwright install chromium --with-deps | |
working-directory: apps/web | |
- name: Run benchmarks | |
id: benchmark | |
run: bun run __bench__/app.bench.mjs | |
working-directory: apps/web |