diff --git a/.woodpecker/check.yml b/.woodpecker/check.yml new file mode 100644 index 0000000..b4ebf2b --- /dev/null +++ b/.woodpecker/check.yml @@ -0,0 +1,26 @@ +when: + - event: pull_request + +steps: + - name: fmt + image: rust:1.84 + commands: + - rustup component add rustfmt + - cargo fmt -- --check + + - name: clippy + image: rust:1.84 + environment: + CARGO_HOME: /tmp/cargo + commands: + - apt-get update -qq && apt-get install -y -qq pkg-config libssl-dev libdbus-1-dev zlib1g-dev > /dev/null 2>&1 + - rustup component add clippy + - cargo clippy -- -D warnings + + - name: test + image: rust:1.84 + environment: + CARGO_HOME: /tmp/cargo + commands: + - apt-get update -qq && apt-get install -y -qq pkg-config libssl-dev libdbus-1-dev zlib1g-dev > /dev/null 2>&1 + - cargo test