Skip to content

Commit 0b4b8a8

Browse files
committed
ci: run tests and clippy for all workspace crates
1 parent 0dc05cb commit 0b4b8a8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Rust
33
on: [ push, pull_request ]
44

55
env:
6-
CARGO_TERM_COLOR: always
6+
CARGO_TERM_COLOR: 'always'
7+
CARGO_TERM_VERBOSE: 'true'
78

89
jobs:
910
test-linux:
@@ -36,8 +37,10 @@ jobs:
3637
.cache/*.tar.sig
3738
key: ${{ runner.os }}-deps-${{ hashFiles('**/nginx-sys/build.rs') }}
3839
restore-keys: ${{ runner.os }}-deps-
40+
- name: build
41+
run: cargo build --workspace --all-targets --all-features
3942
- name: run tests
40-
run: cargo test --verbose
43+
run: cargo test --workspace --all-features
4144

4245
examples-linux:
4346
name: Examples (Linux)
@@ -70,7 +73,7 @@ jobs:
7073
key: ${{ runner.os }}-deps-${{ hashFiles('**/nginx-sys/build.rs') }}
7174
restore-keys: ${{ runner.os }}-deps-
7275
- name: compile examples
73-
run: cargo build --release --package examples --examples --verbose
76+
run: cargo build --release --package examples --examples --all-features
7477

7578
test-macos:
7679
name: Test (MacOS)
@@ -109,9 +112,9 @@ jobs:
109112
- name: disable ipv6 for gpg
110113
run: echo "disable-ipv6" > .cache/.gnupg/dirmngr.conf
111114
- name: build
112-
run: cargo build --verbose
115+
run: cargo build
113116
- name: run tests
114-
run: cargo test --verbose
117+
run: cargo test --workspace
115118

116119
fmt:
117120
name: Rustfmt
@@ -124,7 +127,7 @@ jobs:
124127
- name: rustfmt version
125128
run: rustfmt --version
126129
- name: cargo fmt
127-
run: cargo fmt --all --verbose --check || true
130+
run: cargo fmt --all --check
128131

129132
clippy:
130133
name: Clippy
@@ -159,4 +162,4 @@ jobs:
159162
with:
160163
components: rustfmt, clippy
161164
- name: run clippy
162-
run: cargo clippy -- -D warnings
165+
run: cargo clippy --workspace --all-targets --all-features -- -Dwarnings

0 commit comments

Comments
 (0)