From 456d0789fb72f79ef466bc4e8d8568b7dedd0041 Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Thu, 27 Apr 2023 23:27:00 +0200 Subject: [PATCH] Better CI --- .woodpecker.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 93d7b5c..9e853da 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,6 +3,21 @@ matrix: pipeline: + check-formatting: + image: rust + when: + branch: [ main ] + path: + include: + - src/**/*.rs + - fedimovies-cli/**/*.rs + - fedimovies-config/**/*.rs + - fedimovies-models/**/*.rs + - fedimovies-utils/**/*.rs + commands: + - rustup default $RUST + - cargo fmt --all -- --check + check-style: image: rust when: @@ -16,6 +31,7 @@ pipeline: - fedimovies-utils/**/*.rs commands: - rustup default $RUST + - rustup component add clippy - cargo clippy --all-targets --all-features -- -D warnings run-tests: