Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

ci: run Rust CLI tests before publishing (#6624)

zhanglistar5ec33e297336
diff --git a/.github/workflows/rust-cli.yml b/.github/workflows/rust-cli.yml
index a04a8520e..7d5f8057f 100644
--- a/.github/workflows/rust-cli.yml
+++ b/.github/workflows/rust-cli.yml
@@ -21,6 +21,21 @@ permissions:
contents: read
jobs:
+ test:
+ name: Test Rust CLI
+ runs-on: ubuntu-24.04
+ timeout-minutes: 15
+ steps:
+ - uses: actions/checkout@v6
+ - uses: dtolnay/rust-toolchain@v1
+ with:
+ toolchain: stable
+ - name: Run unit and integration tests
+ # Work around default-stack overflows observed in CLI help tests on Rust 1.99.1.
+ env:
+ RUST_MIN_STACK: 16777216
+ run: cargo test --locked -p ov_cli
+
build:
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.os }}
@@ -173,7 +188,7 @@ jobs:
npm-publish:
name: Publish to npm
runs-on: ubuntu-24.04
- needs: build
+ needs: [build, test]
if: startsWith(github.ref, 'refs/tags/cli@')
permissions:
contents: read