Test benchmarks in a separate step and limit executions

This commit is contained in:
Matt Joiner 2021-12-16 14:19:19 +11:00
parent ffb98097fa
commit 2b0ec5d762
1 changed files with 4 additions and 1 deletions

View File

@ -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 . ./...