瀏覽代碼

[Drone] Enable fmt and clippy in build

Slava Barinov 2 年之前
父節點
當前提交
ca90ddde51
共有 1 個文件被更改,包括 3 次插入0 次删除
  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