Skip to content

Commit 20aaf04

Browse files
committed
checks: Change to running tests per crate
Running tests from the workspace root can cause build issues with embassy. Move to running tests for each crate individually instead.
1 parent 62ddb55 commit 20aaf04

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/check.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,17 @@ jobs:
144144
- name: Install stable
145145
uses: dtolnay/rust-toolchain@stable
146146
- name: cargo test
147-
run: cargo test --locked
147+
run: |
148+
cargo test --locked -p battery-service
149+
cargo test --locked -p cfu-service
150+
cargo test --locked -p embedded-services
151+
cargo test --locked -p espi-service
152+
cargo test --locked -p hid-service
153+
cargo test --locked -p platform-service
154+
cargo test --locked -p power-button-service
155+
cargo test --locked -p power-policy-service
156+
cargo test --locked -p storage_bus
157+
cargo test --locked -p type-c-service
148158
149159
msrv:
150160
# check that we can build using the minimal rust version that is specified by this crate

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

embedded-service/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ cortex-m.workspace = true
4444
embassy-sync = { workspace = true, features = ["std"] }
4545
critical-section = { workspace = true, features = ["std"] }
4646
embassy-futures.workspace = true
47+
embassy-time = { workspace = true, features = ["std"] }
48+
embassy-time-driver = { workspace = true }
49+
embassy-executor = { workspace = true, features = [
50+
"arch-std",
51+
"executor-thread",
52+
] }
4753

4854
[features]
4955
default = []

0 commit comments

Comments
 (0)