From 6d00303978c9db034e72fb6dde99f570f986583d Mon Sep 17 00:00:00 2001 From: Gui Iribarren Date: Wed, 5 Jul 2023 10:05:30 +0200 Subject: [PATCH] ci: run benchmarks (job_go_bench) --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d87a776ea..924c07c97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -94,6 +94,18 @@ jobs: if: github.event_name == 'push' # this is limited to selected branches at the beginning of this file run: go test -coverprofile=unit.covdata.txt -vet=off -timeout=15m -race ./... # note that -race can easily make the crypto stuff 10x slower + job_go_bench: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Go environment + uses: actions/setup-go@v4 + with: + go-version: '1.20' + - name: Run Go bench + run: go test -run='^$' -bench=. ./... + job_compose_test: runs-on: [self-hosted, ci2-1] steps: