-
Notifications
You must be signed in to change notification settings - Fork 1.8k
37 lines (31 loc) · 929 Bytes
/
bench-turborepo.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: Large Repo Benchmark
on:
workflow_dispatch:
workflow_run:
workflows: [Release]
types:
- completed
jobs:
build:
name: Run Benchmarks
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/setup-go
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Build
run: cd cli && make turbo-prod
- name: Run benchmarks
run: cd benchmark && pnpm benchmark
- name: Save to Tinybird
if: github.ref == 'refs/heads/main'
run: |
curl \
-i \
-F "ndjson=@./benchmark/tinybird.ndjson" \
-X POST \
-H 'Authorization: Bearer ${{ secrets.TINYBIRD_TOKEN }}' \
'https://api.us-east.tinybird.co/v0/datasources?format=ndjson&name=turbo_benchmarks&mode=append'