name: Test Sysbench Runner Utility Works

on:
  pull_request:
    branches: [ main ]
    paths:
      - 'go/**'
      - 'integration-tests/**'

concurrency:
  group: ci-sysbench-runner-tests-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

jobs:
  mysql_client_integrations_job:
    runs-on: ubuntu-22.04
    name: Test Sysbench Runner
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Copy Dockerfile
        run: cp -r ./go/performance/continuous_integration/. .
      - name: Test sysbench runner
        uses: ./.github/actions/sysbench-runner-tests
