From 5f1bd57d4ae047c1c20bb7694d69aa373a22ebbc Mon Sep 17 00:00:00 2001 From: Nicholas Rempel Date: Tue, 2 Nov 2021 14:49:00 -0700 Subject: [PATCH] Setup drone actions to run lint on PR --- .drone.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.drone.yml b/.drone.yml index d1dc2dc..21f3b85 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,54 @@ platform: arch: amd64 steps: + - name: check + image: ayravat/rust:1.53.0-ci + volumes: + - name: ssh + path: /root/.ssh + - name: target + path: /tmp/cargo-target + - name: cache + path: /tmp/cargo + - name: config + path: /root/.config/epp-client + commands: + - export CARGO_HOME=/tmp/cargo + - export CARGO_TARGET_DIR=/tmp/cargo-target + - cargo check --all-targets + + - name: fmt + image: ayravat/rust:1.53.0-ci + volumes: + - name: ssh + path: /root/.ssh + - name: target + path: /tmp/cargo-target + - name: cache + path: /tmp/cargo + - name: config + path: /root/.config/epp-client + commands: + - export CARGO_HOME=/tmp/cargo + - export CARGO_TARGET_DIR=/tmp/cargo-target + - cargo fmt --all -- --check + + - name: clippy + image: ayravat/rust:1.53.0-ci + volumes: + - name: ssh + path: /root/.ssh + - name: target + path: /tmp/cargo-target + - name: cache + path: /tmp/cargo + - name: config + path: /root/.config/epp-client + commands: + - export CARGO_HOME=/tmp/cargo + - export CARGO_TARGET_DIR=/tmp/cargo-target + - cargo clippy --workspace --all-targets -- -D warnings + - name: test image: ayravat/rust:1.53.0-ci volumes: