From 5947ddb91cb3abceddd23665d1edff0e37c8da2f Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 2 Jan 2022 20:47:31 +0100 Subject: [PATCH] Added ci config --- .woodpecker/.rustfmt.yml | 5 +++++ .woodpecker/.test.yml | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .woodpecker/.rustfmt.yml create mode 100644 .woodpecker/.test.yml 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