-
Notifications
You must be signed in to change notification settings - Fork 500
39 lines (37 loc) · 1.09 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
38
39
name: Benchmark runner
on:
push:
branches:
- test-bun
schedule:
- cron: '30 2 * * 0'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
COREPACK_ENABLE_AUTO_PIN: 0
steps:
- uses: actions/checkout@v4
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-9 --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