Skip to content

Commit be9543b

Browse files
committed
ci: run all crate tests in one invocation
1. We've already committed our lockfile so there's no need to test the API/subscriber crates individually (if we want to test with the latest available versions we should be running a `cargo update` in CI, so this change remains compatible with the previous behavior) 2. Also enable some non-default feature flags to ensure they are being tested
1 parent c3a2076 commit be9543b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,19 @@ jobs:
7373
matrix:
7474
os: [ubuntu-latest, macos-latest, windows-latest]
7575
rust: [stable]
76+
extraFeatures: [vsock]
7677
include:
78+
- rust: stable
79+
os: windows-latest
80+
extraFeatures: ""
7781
- rust: 1.74.0
7882
os: ubuntu-latest
83+
extraFeatures: [vsock]
7984
# Try to build on the latest nightly. This job is allowed to fail, but
8085
# it's useful to help catch bugs in upcoming Rust versions.
8186
- rust: nightly
8287
os: ubuntu-latest
88+
extraFeatures: [vsock]
8389
steps:
8490
- name: Checkout sources
8591
uses: actions/checkout@v4
@@ -95,14 +101,8 @@ jobs:
95101
with:
96102
repo-token: ${{ secrets.GITHUB_TOKEN }}
97103

98-
- name: Run cargo test (API)
99-
run: cargo test -p console-api
100-
101-
- name: Run cargo test (subscriber)
102-
run: cargo test -p console-subscriber
103-
104-
- name: Run cargo test (console)
105-
run: cargo test -p tokio-console --locked
104+
- name: Run cargo test
105+
run: cargo test --workspace --locked --features "transport,grpc-web,${{ matrix.extraFeatures }}"
106106

107107
lints:
108108
name: Lints

0 commit comments

Comments
 (0)