]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Test benchmarks in a separate step and limit executions
authorMatt Joiner <anacrolix@gmail.com>
Thu, 16 Dec 2021 03:19:19 +0000 (14:19 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 16 Dec 2021 03:19:19 +0000 (14:19 +1100)
.github/workflows/go.yml

index 0faeb9dddb584fca71a8a9c5e243b4e32460ec72..a575eb35bf35f11e9012a0f40499376980aca5ab 100644 (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 . ./...