From 2b0ec5d76213fae3f38e22a75752c3cb6973bdcb Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 16 Dec 2021 14:19:19 +1100 Subject: [PATCH] Test benchmarks in a separate step and limit executions --- .github/workflows/go.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0faeb9dd..a575eb35 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,7 +20,10 @@ jobs: go-version: ${{ matrix.go-version }} - name: Test - run: go test -race -count 2 -bench . ./... + run: go test -race -count 2 ./... + + - name: Test Benchmarks + run: go test -race -run @ -bench . -benchtime 2x ./... - name: Bench run: go test -run @ -bench . ./...