Add benchmark task for CI

This commit is contained in:
Masaaki Goshima 2021-05-03 16:25:44 +09:00
parent 03e2c96136
commit b06cd9a056
1 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,18 @@ jobs:
GOGC: 1
- name: test with race detector
run: go test -v -race ./ -count=1
bench:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: checkout
uses: actions/checkout@v2
- name: run benchmark
run: cd benchmarks && go test -bench .
coverage:
name: Coverage
runs-on: ubuntu-latest