summaryrefslogtreecommitdiff
path: root/.woodpecker.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.woodpecker.yaml')
-rw-r--r--.woodpecker.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml
new file mode 100644
index 0000000..e22e3fa
--- /dev/null
+++ b/.woodpecker.yaml
@@ -0,0 +1,34 @@
+steps:
+ build:
+ image: rust:1.94.0-bullseye
+ environment:
+ RUST_BACKTRACE: 1
+ CARGO_TERM_COLOR: always
+ commands:
+ - rustup default stable
+ - cargo build --verbose --release --jobs 4
+ when:
+ branch: main
+ event: [ push, pull_request ]
+ tests:
+ image: rust
+ environment:
+ RUST_BACKTRACE: 1
+ CARGO_TERM_COLOR: always
+ commands:
+ - cargo test --verbose --jobs 4 -- --test-threads=4
+ when:
+ event: [ pull_request, push ]
+ branch: main
+ clippy_and_fmt:
+ image: rust:1.94.0-bullseye
+ environment:
+ RUST_BACKTRACE: 1
+ CARGO_TERM_COLOR: always
+ commands:
+ - rustup component add clippy rustfmt
+ - cargo fmt --all --check
+ - cargo clippy --jobs 4 -- -D clippy::all # -D warnings
+ when:
+ branch: main
+ event: [ pull_request ]