From a1d51d08efc4ce2cc8bebffc609269b20fe22b29 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 9 Apr 2022 13:44:24 -0600 Subject: [PATCH] Added Woodpecker CI support --- .woodpecker.yml | 31 +++++++++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..a706f4e --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,31 @@ +clone: + git: + image: "woodpeckerci/plugin-git:next" +pipeline: + compliance: + commands: + - "rustup component add clippy" + - "cargo build --verbose" + - "cargo clippy --workspace --tests --all-targets --all-features" + - "cargo test --workspace --no-fail-fast" + image: "rust:latest" + when: + event: pull_request, push + build: + commands: + - "cargo build --release" + image: "rust:latest" + when: + branch: main + event: push + release: + image: jolheiser/drone-gitea-main:latest + settings: + token: + from_secret: gitea_token + base: https://git.jojodev.com + files: + - "target/release/format" + when: + branch: main + event: push diff --git a/Cargo.toml b/Cargo.toml index 0472c16..97ce9d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "formaty" version = "0.1.0" -edition = "2018" +edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -- 2.41.0