From 4d05da75fd69ce9ff40e4fd05aff542129bf45e1 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 1 Nov 2023 20:51:13 +0100 Subject: [PATCH] feat: with ci Signed-off-by: kjuulh --- .woodpecker/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .woodpecker/test.yml diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..793418f --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,34 @@ +when: + - event: [pull_request, tag] + - event: push + branch: + - main + +variables: + - &rust_image 'rustlang/rust:nightly' + +steps: + build: + image: *rust_image + group: build + commands: + - "cargo build" + + test: + image: *rust_image + group: test + commands: + - "cargo test" + + lint: + image: *rust_image + group: lint + commands: + - "cargo clippy" + + fmt: + image: *rust_image + group: fmt + commands: + - "cargo fmt --all --check" +