File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 15
15
profile : minimal
16
16
toolchain : nightly
17
17
override : true
18
+ - name : Install clippy
19
+ run : rustup component add clippy
18
20
- name : Running benchmarks
19
21
env :
20
22
DO_BENCH : true
27
29
env :
28
30
DO_FMT : true
29
31
run : ./contrib/test.sh
32
+ - name : Running linter
33
+ env :
34
+ DO_LINT : true
35
+ run : ./contrib/test.sh
30
36
31
37
Int-tests :
32
38
name : Integration tests
Original file line number Diff line number Diff line change 33
33
# Defaults / sanity checks
34
34
cargo test
35
35
36
+ if [ " $DO_LINT " = true ]; then
37
+ clippy=" cargo +nightly clippy"
38
+
39
+ $clippy -- -D warnings
40
+
41
+ # Lint all the examples
42
+ $clippy --example htlc --features=compiler -- -D warnings
43
+ $clippy --example parse -- -D warnings
44
+ $clippy --example sign_multisig -- -D warnings
45
+ $clippy --example verify_tx -- -D warnings
46
+ $clippy --example xpub_descriptors -- -D warnings
47
+ $clippy --example taproot --features=compiler -- -D warnings
48
+ $clippy --example psbt_sign_finalize --features=base64 -- -D warnings
49
+ fi
50
+
36
51
if [ " $DO_FEATURE_MATRIX " = true ]
37
52
then
38
53
# All features
You can’t perform that action at this time.
0 commit comments