diff --git a/.woodpecker/.rustfmt.yml b/.woodpecker/.rustfmt.yml new file mode 100644 index 0000000..4bfc73d --- /dev/null +++ b/.woodpecker/.rustfmt.yml @@ -0,0 +1,5 @@ +pipeline: + lint: + image: 'rustlang/rust:nightly' + commands: + - cargo fmt -- --check diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml new file mode 100644 index 0000000..9b4780c --- /dev/null +++ b/.woodpecker/.test.yml @@ -0,0 +1,15 @@ +# When block for each step is temporary until top-level when is properly implemented +pipeline: + clippy: + image: 'rust:1.57' + commands: + - cargo clippy -- -D clippy::all --no-deps + when: + event: pull_request + + tests: + image: 'rust:1.57' + commands: + - cargo test + when: + event: pull_request