ci: add unit tests and e2e_truth to CI pipeline

- Run cargo test --lib in CI checks to execute PLN/ECAN/scorer unit tests
- Add e2e_truth test suite to VPS e2e test step
- Enable OPENBRAIN__TRUTH__ENABLED for e2e testing
This commit is contained in:
Agent Zero
2026-04-04 13:29:15 +00:00
parent 07e7d51708
commit 72912f1f2f

View File

@@ -60,6 +60,7 @@ jobs:
. "$HOME/.cargo/env"
cargo check
cargo test --no-run
cargo test --lib
- name: Build release
run: |
@@ -239,11 +240,13 @@ jobs:
OPENBRAIN_E2E_REMOTE: "true"
OPENBRAIN_E2E_BASE_URL: http://${{ secrets.VPS_HOST }}:3100
OPENBRAIN__AUTH__ENABLED: "true"
OPENBRAIN__TRUTH__ENABLED: "true"
run: |
set -euxo pipefail
export OPENBRAIN_E2E_API_KEY="$(cat .ci/openbrain_e2e_key)"
. "$HOME/.cargo/env"
cargo test --test e2e_mcp -- --test-threads=1
cargo test --test e2e_truth -- --test-threads=1
- name: Remove ephemeral e2e key and restart service
if: always() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')