From b827d3d047ee0d76e1765c45e2a1697de088d770 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Fri, 17 Oct 2025 00:51:25 +0200 Subject: [PATCH] ci: add PR pipeline (push) with fmt+clippy+test (linux only) --- .pre-commit-config.yaml | 1 + .woodpecker.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6df3916..349cfc9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,7 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml + args: ['--allow-multiple-documents'] - id: check-toml - id: check-merge-conflict - id: check-added-large-files diff --git a/.woodpecker.yml b/.woodpecker.yml index a28d15e..ff32250 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,3 +1,25 @@ +--- +kind: pipeline +name: pr-checks + +when: + event: + - push + - pull_request + +steps: + - name: fmt-clippy-test + image: rust:1.83 + commands: + - rustup component add rustfmt clippy + - cargo fmt --all -- --check + - cargo clippy --workspace --all-features -- -D warnings + - cargo test --workspace --all-features + +--- +kind: pipeline +name: release + when: event: tag tag: v*