Skip to content

Commit 6281cc2

Browse files
authored
ci: add bench-check job to validate benchmark compilation (#1375)
Signed-off-by: Siddhi Khandelwal <siddhi.200727@gmail.com>
1 parent c77d427 commit 6281cc2

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ jobs:
169169
make fxconfig configtxgen fabricx-docker-images
170170
171171
- name: Run ${{ matrix.tests }}
172+
172173
run: |
173174
mkdir -p covdata
174175
GOCOVERDIR=$(realpath covdata) make integration-tests-${{ matrix.tests }}
@@ -190,3 +191,24 @@ jobs:
190191
uses: shogo82148/actions-goveralls@v1
191192
with:
192193
parallel-finished: true
194+
195+
bench-check:
196+
needs: checks
197+
runs-on: ubuntu-latest
198+
199+
steps:
200+
- name: Checkout code
201+
uses: actions/checkout@v4
202+
203+
- name: Set up Go
204+
uses: actions/setup-go@v5
205+
with:
206+
go-version-file: "go.mod"
207+
cache-dependency-path: "**/*.sum"
208+
209+
- name: Download dependencies
210+
run: go mod download
211+
212+
- name: Compile benchmarks (do not run)
213+
run: go test ./... -run=^$ -bench=^$
214+

0 commit comments

Comments
 (0)