test #193
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: test | |
on: | |
workflow_dispatch: | |
permissions: read-all | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 240 | |
strategy: | |
fail-fast: false | |
matrix: | |
options: | |
- fn-call | |
- non-fn-call | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "1.22" | |
- name: setup test dependencies | |
run: | | |
make test-e2e-dependencies | |
- name: build binary | |
run: | | |
make bin | |
- name: create kind cluster | |
run: | | |
# used to retrieve the k8s api for fn-call and apply the manifest | |
kind create cluster | |
- name: run tests | |
shell: bash | |
run: | | |
if [[ ${{ matrix.options }} == 'fn-call' ]]; then | |
FN_CALL="--use-k8s-api" | |
fi | |
kubectl ai "create an nginx deployment with 3 replicas" --require-confirmation=false ${FN_CALL} | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
OPENAI_DEPLOYMENT_NAME: ${{ secrets.OPENAI_DEPLOYMENT_NAME }} | |
OPENAI_ENDPOINT: ${{ secrets.OPENAI_ENDPOINT }} | |
- run: | | |
kubectl get deployments | |
kubectl get pods |