From 81be79d46d891dea906b3ef1b3e797b64a96c8ce Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 10 Feb 2022 00:28:47 +0100 Subject: [PATCH] ci: Add a basic ci config Do things like build docs, check fmt, clippy and build in non-release and release mode as well as the debian package. Include a badge which reflects the status of the ci for the main branch to the readme. --- .woodpecker.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1fe79b8 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,29 @@ +pipeline: + doc: + image: rust + commands: + - cargo doc + + fmt: + image: rust + commands: + - rustup component add rustfmt + - cargo fmt --all -- --check + + clippy: + image: rust + commands: + - rustup component add clippy + - cargo clippy --all-features + + build: + image: rust + commands: + - cargo build + - cargo build --release + + build-deb: + image: rust + commands: + - cargo install cargo-deb + - cargo deb diff --git a/README.md b/README.md index b586e67..c48045a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # Webhookey +![status-badge](https://ci.onders.org/api/badges/finga/webhookey/status.svg?branch=main) + Webhookey is a web server listening for [webhooks](https://en.wikipedia.org/wiki/Webhook) as for example sent by Gitea's webhooks. Further, Webhookey allows you to specify rules