From a6c849f26874953f05d1b6bd306d957170a7306f Mon Sep 17 00:00:00 2001 From: hdbg Date: Sat, 14 Feb 2026 23:43:44 +0100 Subject: [PATCH] ci: add server linting pipeline for Rust code quality checks --- .woodpecker/server-lint.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .woodpecker/server-lint.yaml diff --git a/.woodpecker/server-lint.yaml b/.woodpecker/server-lint.yaml new file mode 100644 index 0000000..f17bead --- /dev/null +++ b/.woodpecker/server-lint.yaml @@ -0,0 +1,24 @@ +when: + - event: pull_request + path: + include: ['.woodpecker/server-*.yaml', 'server/**'] + - event: push + branch: main + path: + include: ['.woodpecker/server-*.yaml', 'server/**'] + +steps: + - name: test + image: jdxcode/mise:latest + directory: server + environment: + CARGO_TERM_COLOR: always + CARGO_TARGET_DIR: /usr/local/cargo/target + CARGO_HOME: /usr/local/cargo/registry + volumes: + - cargo-target:/usr/local/cargo/target + - cargo-registry:/usr/local/cargo/registry + commands: + - apt-get update && apt-get install -y pkg-config + - mise install rust + - mise exec rust -- cargo clippy --all-targets --all-features -- -D warnings \ No newline at end of file