ci: Create a woodpecker pipelines
This commit is contained in:
parent
268ac8eed3
commit
1af426fbf3
2 changed files with 95 additions and 0 deletions
73
.woodpecker/checks.yaml
Normal file
73
.woodpecker/checks.yaml
Normal file
|
@ -0,0 +1,73 @@
|
|||
---
|
||||
|
||||
steps:
|
||||
target:
|
||||
when:
|
||||
- event: push
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
pull: true
|
||||
failure: ignore
|
||||
commands:
|
||||
- rustup target add wasm32-unknown-unknown
|
||||
fmt:
|
||||
when:
|
||||
- event: push
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
pull: true
|
||||
failure: ignore
|
||||
commands:
|
||||
- rustup component add rustfmt
|
||||
- cargo fmt --check --all
|
||||
check:
|
||||
when:
|
||||
- event: push
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
pull: true
|
||||
commands:
|
||||
- cargo check
|
||||
build:
|
||||
when:
|
||||
- event: push
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
pull: true
|
||||
commands:
|
||||
- cargo build
|
||||
test:
|
||||
when:
|
||||
- event: push
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
pull: true
|
||||
commands:
|
||||
- cargo test
|
||||
clippy:
|
||||
when:
|
||||
- event: push
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
pull: true
|
||||
failure: ignore
|
||||
commands:
|
||||
- rustup component add clippy
|
||||
- cargo clippy
|
||||
doc:
|
||||
when:
|
||||
- event: push
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
pull: true
|
||||
commands:
|
||||
- cargo doc
|
||||
audit:
|
||||
when:
|
||||
- event: push
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
pull: true
|
||||
commands:
|
||||
- cargo install cargo-audit
|
||||
- cargo audit
|
Loading…
Add table
Add a link
Reference in a new issue