28 lines
1003 B
YAML
28 lines
1003 B
YAML
# Woodpecker CI pipeline for the Rust workspace.
|
|
# The strict security lane needs a disposable VM/self-hosted runner and is
|
|
# intentionally not part of this docker pipeline; see docs/security-vm.md.
|
|
when:
|
|
event: [push, pull_request]
|
|
|
|
steps:
|
|
test:
|
|
image: rust:1.100-bookworm
|
|
commands:
|
|
- rustup component add clippy rustfmt
|
|
- apt-get update
|
|
- apt-get install -y --no-install-recommends curl ca-certificates
|
|
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
|
- apt-get install -y --no-install-recommends nodejs
|
|
- cargo fmt --all -- --check
|
|
- cargo clippy --workspace --all-targets -- -D warnings
|
|
- cargo test --workspace --locked
|
|
- cargo test -p marqdo-cli --test docs_consistency
|
|
- cargo test -p marqdo-cli --test architecture_boundaries
|
|
- cargo test -p marqdo-cli --test stdlib_product
|
|
|
|
build:
|
|
image: rust:1.100-bookworm
|
|
depends_on: [test]
|
|
commands:
|
|
- cargo build --release --locked -p marqdo-cli
|