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*