Skip to content

Commit 00d9c0d

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 00d9c0d

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.github/workflows/check.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,29 @@ jobs:
136136

137137
test:
138138
runs-on: ubuntu-latest
139-
name: ubuntu / stable / test
139+
name: ubuntu / stable / test / ${{ matrix.crate }}
140+
strategy:
141+
fail-fast: false
142+
matrix:
143+
crate:
144+
- battery-service
145+
- cfu-service
146+
- embedded-services
147+
- espi-service
148+
- hid-service
149+
- platform-service
150+
- power-button-service
151+
- power-policy-service
152+
- storage_bus
153+
- type-c-service
140154
steps:
141155
- uses: actions/checkout@v4
142156
with:
143157
submodules: true
144158
- name: Install stable
145159
uses: dtolnay/rust-toolchain@stable
146160
- name: cargo test
147-
run: cargo test --locked
161+
run: cargo test --locked -p ${{ matrix.crate }}
148162

149163
msrv:
150164
# 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)