Skip to content

Commit

Permalink
github actions: run benchmarks for go test
Browse files Browse the repository at this point in the history
go vet -unsafeptr=false since gosec checks for this.
  • Loading branch information
maruel committed Jun 20, 2022
1 parent 21015f6 commit 4380c3c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ jobs:
if: always()
run: rm coverage.txt
- name: 'Check: go test -race'
run: go test -timeout=120s -race ./...
run: go test -timeout=120s -race -bench=. -benchtime=1x ./...
- name: 'Check: benchmark 📈'
run: ba -a HEAD~1
run: ba -against HEAD~1
- name: 'Check: go test -short (CGO_ENABLED=0)'
env:
CGO_ENABLED: 0
run: go test -timeout=120s -short ./...
run: go test -timeout=120s -short -bench=. -benchtime=1x ./...
- name: 'Check: go test -short (32 bits)'
if: matrix.os != 'macos-latest'
env:
GOARCH: 386
run: go test -timeout=120s -short ./...
run: go test -timeout=120s -short -bench=. -benchtime=1x ./...
- name: "Check: tree is clean"
if: always()
run: |
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
go install github.com/google/addlicense@latest
- name: 'Check: go vet'
if: always()
run: go vet ./...
run: go vet -unsafeptr=false ./...
- name: 'Check: go vet shadow; shadowed variables'
if: always()
run: |
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
with:
go-version: "=${{matrix.gover}}"
- name: 'Check: go test'
run: go test -timeout=120s ./...
run: go test -timeout=120s -bench=. -benchtime=1x ./...


codeql:
Expand Down

0 comments on commit 4380c3c

Please sign in to comment.