Run e2e tests against deployed VPS

This commit is contained in:
Agent Zero
2026-03-22 22:52:30 +00:00
parent 8a581b2a2f
commit cb6ccd5394
3 changed files with 46 additions and 0 deletions

View File

@@ -214,6 +214,19 @@ jobs:
curl -fsS "http://$VPS_HOST:3100/health"
curl -fsS "http://$VPS_HOST:3100/ready"
- name: Run VPS e2e tests
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
env:
OPENBRAIN_E2E_REMOTE: "true"
OPENBRAIN_E2E_BASE_URL: http://${{ secrets.VPS_HOST }}:3100
OPENBRAIN_E2E_API_KEY: ${{ secrets.OPENBRAIN_E2E_API_KEY }}
OPENBRAIN__AUTH__ENABLED: "true"
run: |
set -euxo pipefail
: "${OPENBRAIN_E2E_API_KEY:?Set repository secret OPENBRAIN_E2E_API_KEY}"
. "$HOME/.cargo/env"
cargo test --test e2e_mcp -- --test-threads=1
- name: Cleanup SSH key
if: always()
run: |