-
Notifications
You must be signed in to change notification settings - Fork 495
37 lines (35 loc) · 1.05 KB
/
benchmark.yml
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
37
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: 20
- run: |
corepack enable
corepack prepare pnpm@next-8 --activate
corepack prepare yarn@stable --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