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