Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Better CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcaricio committed Apr 27, 2023
1 parent f73a054 commit 456d078
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 456d078

Please sign in to comment.