Fmt & Added CI
This commit is contained in:
parent
39fe1b820b
commit
b939961181
16 changed files with 181 additions and 104 deletions
34
.woodpecker.yaml
Normal file
34
.woodpecker.yaml
Normal file
|
|
@ -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 ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue