From 31903e8ff9e16ab6db05ce56dee6498df976665b Mon Sep 17 00:00:00 2001 From: qpismont Date: Thu, 13 Nov 2025 22:48:13 +0000 Subject: [PATCH] Add clippy step to code quality configuration and update test configuration --- .woodpecker/code-quality.yml | 13 +++++++++++++ .woodpecker/test.yml | 21 ++++++++++++++------- 2 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 .woodpecker/code-quality.yml diff --git a/.woodpecker/code-quality.yml b/.woodpecker/code-quality.yml new file mode 100644 index 0000000..a076f2c --- /dev/null +++ b/.woodpecker/code-quality.yml @@ -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" diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index a076f2c..5515176 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -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: