From 38a5e7e5207bfe9b1cf8212bc02984badf0b8f77 Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 25 Feb 2024 10:54:02 -0500 Subject: [PATCH] ci: add basic cargo ci --- .woodpecker/cargo-checks.yml | 14 ++++++++++++++ .woodpecker/flake-update.yml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .woodpecker/cargo-checks.yml diff --git a/.woodpecker/cargo-checks.yml b/.woodpecker/cargo-checks.yml new file mode 100644 index 0000000..1da2adc --- /dev/null +++ b/.woodpecker/cargo-checks.yml @@ -0,0 +1,14 @@ +when: + - event: pull_request + - event: push + - path: "src/*" + +steps: + cargo_clippy: + image: rustlang/rust + commands: + - cargo clippy + cargo_test: + image: rustlang/rust + commands: + - cargo test diff --git a/.woodpecker/flake-update.yml b/.woodpecker/flake-update.yml index 37d88de..56c672a 100644 --- a/.woodpecker/flake-update.yml +++ b/.woodpecker/flake-update.yml @@ -37,7 +37,7 @@ steps: owner: ${CI_REPO_OWNER} repo: ${CI_REPO_NAME} branch: flake-lock-update - base_branch: master + base_branch: main pr_title: "flake.lock: update" pr_body: PR automatically created by Woodpecker CI close_pr_if_empty: true