srug-website/.woodpecker/checks.yaml

74 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2024-05-23 17:42:35 +02:00
---
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