Browse Source

[Drone] Enable fmt and clippy in build

Slava Barinov 2 năm trước cách đây
mục cha
commit
ca90ddde51
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      .drone.yml

+ 3 - 0
.drone.yml

@@ -7,8 +7,11 @@ steps:
   image: rust:1.73
   commands:
   - rustup default nightly
+  - rustup component add rustfmt clippy
+  - cargo fmt --all -- --check
   - cargo build --verbose --all --features docker
   - cargo test --verbose --all --features docker
+  - cargo clippy
 
 - name: build docker image
   image: plugins/docker