File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 59
59
run : |
60
60
cargo --version
61
61
rustc --version
62
- # TODO: Maybe also check clippy and rustfmt here.
63
62
- name : Build
64
63
run : cargo build --all-targets
65
64
- uses : taiki-e/install-action@v2
71
70
- name : Check rustfmt
72
71
run : cargo fmt --all --check
73
72
- name : Check clippy
74
- # TODO: -- -D warnings
75
- run : cargo clippy --all-targets --all-features
73
+ run : cargo clippy --all-targets --all-features -- -D warnings
76
74
- name : Check typos
77
75
uses : crate-ci/typos@master
78
76
- name : Build release binary
@@ -115,8 +113,10 @@ jobs:
115
113
- name : Check rustfmt
116
114
run : cargo fmt --all --check
117
115
- name : Check clippy
118
- # TODO: Deny warnings
119
- run : cargo clippy --all-targets --all-features
116
+ if : matrix.version == 'stable'
117
+ # Clippy checks can vary between versions in a way that makes it a bit
118
+ # fiddly to satisfy them all, so only insist that they pass on stable.
119
+ run : cargo clippy --all-targets --all-features -- -D warnings
120
120
- run : cargo update
121
121
- name : Test after cargo update
122
122
run : cargo test --workspace
You can’t perform that action at this time.
0 commit comments