From b139046daa0d6eaf3f43046c33b2bb7a57a0a971 Mon Sep 17 00:00:00 2001 From: sbruens Date: Wed, 27 Mar 2024 14:28:38 -0400 Subject: [PATCH] Add 5 minute timeout to individual workflow steps. --- .github/workflows/bench.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 1e5bb971..6be2d293 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -34,11 +34,13 @@ jobs: run: go install golang.org/x/perf/cmd/benchstat@latest - name: Run Benchmark (previous) + timeout-minutes: 5 run: | cd previous go test -bench=. -benchmem -benchtime=100ms -count=10 ./... > benchmark.txt - name: Run Benchmark (new) + timeout-minutes: 5 run: | cd new go test -bench=. -benchmem -benchtime=100ms -count=10 ./... > benchmark.txt