Better CI
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Rafael Caricio 2023-04-27 23:27:00 +02:00
parent f73a05439d
commit 456d0789fb
Signed by: rafaelcaricio
GPG key ID: 3C86DBCE8E93C947

View file

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