yuno/.woodpecker/quality.yml
silvana 80e33fa7e6
All checks were successful
ci/woodpecker/pr/quality Pipeline was successful
Add(assets): tiled maps support.
2024-08-04 14:20:29 +02:00

58 lines
1.7 KiB
YAML

when:
- event: [pull_request]
steps:
fmt:
image: git.ragarock.moe/silvana/yuno/rust:latest
secrets: [access_key, secret_key]
environment:
CARGO_TERM_COLOR: "always"
CARGO_HOME: "./.cargo-home"
RUSTC_WRAPPER: "/usr/bin/sccache"
SCCACHE_ENDPOINT: "https://minio.ragarock.moe"
SCCACHE_BUCKET: "cache"
SCCACHE_REGION: "auto"
AWS_ACCESS_KEY_ID:
from_secret: access_key
AWS_SECRET_ACCESS_KEY:
from_secret: secret_key
commands:
- rustup default nightly
- rustup component add rustfmt
- cargo fmt -- --check
clippy:
image: git.ragarock.moe/silvana/yuno/rust:latest
secrets: [access_key, secret_key]
environment:
CARGO_TERM_COLOR: "always"
CARGO_HOME: "./.cargo-home"
RUSTC_WRAPPER: "/usr/bin/sccache"
SCCACHE_ENDPOINT: "https://minio.ragarock.moe"
SCCACHE_BUCKET: "cache"
SCCACHE_REGION: "auto"
AWS_ACCESS_KEY_ID:
from_secret: access_key
AWS_SECRET_ACCESS_KEY:
from_secret: secret_key
commands:
- rustup default nightly
- rustup component add clippy
- cargo clippy -- -D warnings
test:
image: git.ragarock.moe/silvana/yuno/rust:latest
secrets: [access_key, secret_key]
environment:
CARGO_TERM_COLOR: "always"
CARGO_HOME: "./.cargo-home"
RUSTC_WRAPPER: "/usr/bin/sccache"
SCCACHE_ENDPOINT: "https://minio.ragarock.moe"
SCCACHE_BUCKET: "cache"
SCCACHE_REGION: "auto"
AWS_ACCESS_KEY_ID:
from_secret: access_key
AWS_SECRET_ACCESS_KEY:
from_secret: secret_key
commands:
- rustup default nightly
- cargo check
- cargo test