Implementation of Namespace Filtering with Cache Optimization for KAgent Controller #2
Workflow file for this run
This file contains hidden or 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: Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "go/**" | |
branches: | |
- main | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
unit-test-paths: | |
- go/controller/cmd | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.24" | |
cache: true | |
- name: Run cmd/main.go tests | |
working-directory: ${{ matrix.unit-test-paths }} | |
run: | | |
go test -v ./... | |
e2e-test: | |
env: | |
VERSION: v0.0.1-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Helm | |
uses: azure/setup-helm@v4.2.0 | |
with: | |
version: v3.17.0 | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@v1 | |
with: | |
cluster_name: kagent | |
- name: Install Kagent | |
env: | |
OPENAI_API_KEY: fake-key | |
run: | | |
make helm-install | |
kubectl wait --for=condition=Accepted agents.kagent.dev -n kagent --all --timeout=60s | |
# - name: Run E2E tests | |
# env: | |
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
# run: | | |
# make e2e-test |