From c457aadcab561246d55527423a2bef22224b16d3 Mon Sep 17 00:00:00 2001 From: TwiN Date: Sat, 18 Jun 2022 14:04:11 -0400 Subject: [PATCH] feat(ci): Add benchmark workflow --- .github/workflows/benchmark.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/benchmark.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml new file mode 100644 index 00000000..f759a5b5 --- /dev/null +++ b/.github/workflows/benchmark.yml @@ -0,0 +1,26 @@ +name: benchmark +on: + workflow_dispatch: + inputs: + repository: + description: "Repository to checkout. Useful for benchmarking a fork. Format should be /." + required: true + default: ${{ github.repository }} + ref: + description: "Branch, tag or SHA to checkout" + required: true + default: "master" +jobs: + build: + name: benchmark + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/setup-go@v3 + with: + go-version: 1.18 + repository: ${{ github.event.inputs.repository }} + ref: ${{ github.event.inputs.ref }} + - uses: actions/checkout@v3 + - name: Benchmark + run: go test -bench=. ./storage/store