Skip to content

Commit c739d15

Browse files
committed
CI: execute benchmarks once to prevent bitrot
Execute benchmarks once on CI, to prevent bitrot from setting in. We do this as a separate target without gotestsum filtering since there is a bug in the Go toolchain which prevents benchmark output from being parsed properly. See gotestyourself/gotestsum#332 Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
1 parent 63c0f95 commit c739d15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ jobs:
129129
- name: Test
130130
run: gotestsum --raw-command --ignore-non-json-output-lines --junitfile junit.xml -- ./run-tests.sh $CI_MAX_KERNEL_VERSION -short -count 1 -json ./...
131131

132+
- name: Benchmark
133+
run: go test -exec sudo -short -run '^$' -bench . -benchtime=1x ./...
134+
132135
- name: Upload Test Results
133136
if: always()
134137
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)