-
Notifications
You must be signed in to change notification settings - Fork 1.5k
46 lines (39 loc) · 1.27 KB
/
test-bench.yml
File metadata and controls
46 lines (39 loc) · 1.27 KB
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
40
41
42
43
44
45
46
name: Benchmarks
# We only run benchmarks on pull requests to catch accidental breakage early.
# We don't run on push to main/release because benchmarks aren't actively used
# for anything right now — if they break post-merge it's not a release blocker.
# If we ever care about benchmark results over time, that would be a separate
# workflow on main that tracks performance trends, not this one.
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
defaults:
run:
shell: bash
jobs:
benchmarks:
concurrency:
group: ${{ format('{0}-{1}', github.workflow, github.ref) }}
cancel-in-progress: true
runs-on: ubuntu-24.04
steps:
- name: Checkout custom actions
uses: actions/checkout@v6
with:
fetch-depth: 1
# No submodules, LFS, or space cleanup needed: benchmark functions
# only use in-memory or local testdata/ files. Submodules
# (legacy-tests, execution-spec-tests) and LFS fixtures are only
# read by regular Test* functions.
- uses: ./.github/actions/setup-erigon
id: erigon
- name: Run benchmarks
run: make test-bench
- uses: ./.github/actions/cleanup-erigon
if: always()