Skip to content

Commit e125faf

Browse files
committed
ci: run tests and clippy for all workspace crates
1 parent 8156c22 commit e125faf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
key: ${{ runner.os }}-deps-${{ hashFiles('**/nginx-sys/build.rs') }}
3838
restore-keys: ${{ runner.os }}-deps-
3939
- name: run tests
40-
run: cargo test --verbose
40+
run: cargo test --verbose --workspace
4141

4242
examples-linux:
4343
name: Examples (Linux)
@@ -70,7 +70,7 @@ jobs:
7070
key: ${{ runner.os }}-deps-${{ hashFiles('**/nginx-sys/build.rs') }}
7171
restore-keys: ${{ runner.os }}-deps-
7272
- name: compile examples
73-
run: cargo build --release --package examples --examples --verbose
73+
run: cargo build --release --package examples --examples --all-features --verbose
7474

7575
test-macos:
7676
name: Test (MacOS)
@@ -111,7 +111,7 @@ jobs:
111111
- name: build
112112
run: cargo build --verbose
113113
- name: run tests
114-
run: cargo test --verbose
114+
run: cargo test --verbose --workspace
115115

116116
fmt:
117117
name: Rustfmt
@@ -124,7 +124,7 @@ jobs:
124124
- name: rustfmt version
125125
run: rustfmt --version
126126
- name: cargo fmt
127-
run: cargo fmt --all --verbose --check || true
127+
run: cargo fmt --all --verbose --check
128128

129129
clippy:
130130
name: Clippy
@@ -159,4 +159,4 @@ jobs:
159159
with:
160160
components: rustfmt, clippy
161161
- name: run clippy
162-
run: cargo clippy -- -D warnings
162+
run: cargo clippy --workspace --all-targets -- -D warnings

0 commit comments

Comments
 (0)