Skip to content

Commit

Permalink
Add Go GHA.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Oct 24, 2023
1 parent d36ea96 commit eb7d9a2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eb7d9a2

Please sign in to comment.