Add clippy step to code quality configuration and update test configuration
All checks were successful
ci/woodpecker/push/code-quality/1 Pipeline was successful
ci/woodpecker/push/code-quality/2 Pipeline was successful
ci/woodpecker/push/test/1 Pipeline was successful
ci/woodpecker/push/test/2 Pipeline was successful

This commit is contained in:
2025-11-13 22:48:13 +00:00
parent 9b7d07cdae
commit 31903e8ff9
2 changed files with 27 additions and 7 deletions

View 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"

View File

@@ -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: