mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-03-31 14:49:06 +00:00
Run e2e tests against deployed VPS
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user