Benchmark runner #590
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: Benchmark runner | |
on: | |
push: | |
branches: | |
- test-bun | |
schedule: | |
- cron: '30 2 * * 0' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: | | |
corepack enable | |
corepack prepare pnpm@next-8 --activate | |
- run: curl https://bun.sh/install | bash | |
- run: /home/runner/.bun/bin/bun -v | |
- run: pnpm --dir=benchmarks install | |
- run: pnpm --dir=benchmarks run benchmark | |
- run: pnpm --dir=benchmarks run benchmark | |
- run: pnpm --dir=benchmarks run benchmark | |
- name: Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
message: "chore: update benchmarks" | |
branch: main |