From eb7d9a299ce8b66346a8ff1d91bd44982e086661 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Tue, 24 Oct 2023 13:06:53 -0700 Subject: [PATCH] Add Go GHA. Signed-off-by: Yury-Fridlyand --- .github/workflows/go.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000000..792f638d3b --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,38 @@ +name: Go client benchmarks + +on: + push: + paths: + - babushka-core/** + - submodules/** + - "go/**" + - ".github/workflows/go.yml" + pull_request: + paths: + - babushka-core/** + - submodules/** + - "go/**" + - ".github/workflows/go.yml" + workflow_dispatch: + inputs: + name: + required: false + type: string + +run-name: ${{ inputs.name == '' && format('{0} @ {1}', github.ref_name, github.sha) || inputs.name }} + +jobs: + go-benchmark: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Start Redis + run: docker run -p 6379:6379 -p 8001:8001 -d redis/redis-stack + + - name: Run go benchmark + working-directory: benchmarks + run: install_and_test.sh -go -tasks 10 -data 200 -clients 2 -no-tls