Skip to content

Commit 395923e

Browse files
committed
fix: split cargo test into per-crate steps for CI diagnostics
cargo test --workspace consistently gets a runner shutdown signal after sandchest-agent tests complete but before sandchest-node tests run. Splitting into separate steps will isolate which crate's test binary is causing the issue.
1 parent d862170 commit 395923e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454

5555
- run: cargo check --workspace
5656

57-
- run: cargo test --workspace
57+
- name: Test sandchest-agent
58+
run: cargo test -p sandchest-agent
59+
60+
- name: Test sandchest-node
61+
run: cargo test -p sandchest-node
5862

5963
- run: cargo clippy --workspace -- -D warnings

.github/workflows/deploy-node.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
- name: Install protobuf compiler
3636
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
3737

38-
- run: cargo test --workspace
38+
- name: Test sandchest-agent
39+
run: cargo test -p sandchest-agent
40+
41+
- name: Test sandchest-node
42+
run: cargo test -p sandchest-node
3943

4044
- run: cargo clippy --workspace -- -D warnings
4145

0 commit comments

Comments
 (0)