diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aea30c..a67ea57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,10 +48,14 @@ jobs: run: cargo clippy --all-targets --all-features - name: Build - run: cargo build --lib + # 构建 lib + 二进制入口(main.rs),确保 gateway 二进制也被编译验证 + run: cargo build - name: Run tests - run: cargo test --lib + # 运行 lib 单元测试 + tests/ 集成测试 + # test_integration.rs / test_tool_calling.rs 中的 #[ignore] 测试 + # 需要真实 API key,会被跳过;test_request_format.rs 的测试会实际执行 + run: cargo test frontend-checks: name: Frontend build + test