From: Matt Joiner Date: Thu, 16 Dec 2021 03:19:19 +0000 (+1100) Subject: Test benchmarks in a separate step and limit executions X-Git-Tag: v1.39.2~3 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2b0ec5d76213fae3f38e22a75752c3cb6973bdcb;p=btrtrc.git Test benchmarks in a separate step and limit executions --- 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 . ./...