Add clippy step to code quality configuration and update test configuration
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
steps:
|
||||
- name: clippy
|
||||
image: rust:${RUST_VERSION}
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
commands:
|
||||
- rustup component add clippy
|
||||
- cargo clippy --all-targets --all-features -- -D warnings
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
- dockerd-entrypoint.sh &
|
||||
- sleep 5
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: rust:${RUST_VERSION}
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
commands:
|
||||
- cargo test --verbose
|
||||
|
||||
matrix:
|
||||
RUST_VERSION:
|
||||
|
||||
Reference in New Issue
Block a user