Skip to content

Commit ee69885

Browse files
committed
ci: add standalone benchmark workflow
1 parent b7a4d2d commit ee69885

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/test-bench.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'release/**'
8+
pull_request:
9+
branches:
10+
- main
11+
types:
12+
- opened
13+
- reopened
14+
- synchronize
15+
- ready_for_review
16+
workflow_dispatch:
17+
18+
defaults:
19+
run:
20+
shell: bash
21+
22+
jobs:
23+
benchmarks:
24+
concurrency:
25+
group: >-
26+
${{
27+
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) &&
28+
format('{0}-{1}', github.workflow, github.run_id) ||
29+
format('{0}-{1}', github.workflow, github.ref)
30+
}}
31+
cancel-in-progress: true
32+
runs-on: ubuntu-24.04
33+
34+
steps:
35+
- name: Checkout custom actions
36+
uses: actions/checkout@v6
37+
with:
38+
fetch-depth: 1
39+
40+
- uses: ./.github/actions/setup-erigon
41+
id: erigon
42+
with:
43+
# No submodules, LFS, or space cleanup needed: benchmark
44+
# functions only use in-memory or local testdata/ files.
45+
# Submodules (legacy-tests, execution-spec-tests) and LFS
46+
# fixtures are only read by regular Test* functions.
47+
48+
- name: Run benchmarks
49+
run: make test-bench
50+
51+
- uses: ./.github/actions/cleanup-erigon
52+
if: always()

0 commit comments

Comments
 (0)