feat: support a function to batch get exp #2224
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: KONG | |
on: | |
workflow_dispatch: | |
inputs: | |
kong-branch: | |
description: "Kong branch name" | |
type: string | |
required: false | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
env: | |
repo_pat: ${{ secrets.KONG_FINE_GRAINED_REPO_PAT }} | |
test_api_key: ${{ secrets.KONG_SERVER_SDK_KEY }} | |
test_client_key: ${{ secrets.KONG_CLIENT_SDK_KEY }} | |
FORCE_COLOR: true | |
jobs: | |
KONG: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get KONG | |
run: | | |
if [[ -n "${{ inputs.kong-branch }}" && ${{ github.event_name }} == "workflow_dispatch" ]]; then | |
git clone -b ${{ inputs.kong-branch }} https://oauth2:[email protected]/statsig-io/kong.git . | |
else | |
git clone https://oauth2:[email protected]/statsig-io/kong.git . | |
fi | |
- name: Install Deps | |
run: npm install | |
- name: Setup Kotlin SDK | |
run: npm run kong -- setup kotlin -v | |
- name: Build Bridge | |
run: npm run kong -- build kotlin -v | |
- name: Run Tests | |
run: npm run kong -- test kotlin -v -r | |
- name: Run Measure Base Benchmark Score | |
if: github.ref == 'refs/heads/main' | |
run: npm run kong -- regression_test kotlin -p base -v | |
- name: Upload base benchmark score | |
if: github.ref == 'refs/heads/main' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: kotlin-perf | |
path: /tmp/perf/kotlin_perf_score.txt | |
retention-days: 5 | |
- name: Run regression test | |
if: github.ref != 'refs/heads/main' | |
run: npm run kong -- regression_test kotlin -p test -v |