From b06cd9a05674e77ab71e36118527d6b4e2d822ab Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Mon, 3 May 2021 16:25:44 +0900 Subject: [PATCH] Add benchmark task for CI --- .github/workflows/go.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e481b6f..c8a76d7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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