Setup drone actions to run lint on PR

This commit is contained in:
Nicholas Rempel 2021-11-02 14:49:00 -07:00 committed by masalachai
parent c5fc82491b
commit 5f1bd57d4a
1 changed files with 48 additions and 0 deletions

View File

@ -7,6 +7,54 @@ platform:
arch: amd64 arch: amd64
steps: 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 - name: test
image: ayravat/rust:1.53.0-ci image: ayravat/rust:1.53.0-ci
volumes: volumes: