Integration Tests #1065
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: | |
schedule: | |
- cron: "0 0/4 * * *" | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
env: | |
test_api_key: ${{ secrets.KONG_SERVER_SDK_KEY }} | |
test_client_key: ${{ secrets. KONG_CLIENT_SDK_KEY }} | |
repo_pat: ${{ secrets.KONG_FINE_GRAINED_REPO_PAT }} | |
FORCE_COLOR: true | |
jobs: | |
KONG: | |
if: github.event_name != 'schedule' || github.repository.private | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get KONG | |
run: git clone https://oauth2:$repo_pat@github.com/statsig-io/kong.git . | |
- name: Install Deps | |
run: npm install | |
- name: Setup Rust SDK | |
run: npm run kong -- setup rust -v | |
- name: Build Bridge Image | |
run: npm run kong -- build rust -v | |
- name: Run Tests [Non Rulesets] | |
run: npm run kong -- test rust -r -x rulesets | |
- name: Run Tests [Rulesets Only] | |
run: npm run kong -- test rust -r -f rulesets |