1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-26 10:11:10 +00:00
ibis/.woodpecker.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

2024-01-25 16:03:36 +00:00
steps:
cargo_fmt:
image: rust:1.75
environment:
# store cargo data in repo folder so that it gets cached between steps
CARGO_HOME: .cargo_home
commands:
2024-01-25 16:05:24 +00:00
- rustup component add rustfmt
2024-01-25 16:03:36 +00:00
- cargo fmt -- --check
frontend_wasm_build:
image: rust:1.75
environment:
CARGO_HOME: .cargo_home
commands:
- "rustup target add wasm32-unknown-unknown"
- "cargo check --target wasm32-unknown-unknown --features csr,hydrate --no-default-features"
check_diesel_schema:
image: willsquire/diesel-cli
environment:
CARGO_HOME: .cargo_home
DATABASE_URL: postgres://ibis:password@database:5432/ibis
commands:
- diesel migration run
- diesel print-schema --config-file=diesel.toml > tmp.schema
- diff tmp.schema src/backend/database/schema.rs
cargo_clippy:
image: rust:1.75
environment:
CARGO_HOME: .cargo_home
commands:
2024-01-26 10:07:49 +00:00
- rustup component add clippy
2024-01-25 16:03:36 +00:00
- cargo clippy --tests --all-targets --all-features
cargo_test:
image: rust:1.75
environment:
LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis
RUST_BACKTRACE: "1"
CARGO_HOME: .cargo_home
commands:
- cargo test --no-fail-fast
services:
database:
image: postgres:15.2-alpine
environment:
POSTGRES_USER: ibis
POSTGRES_PASSWORD: password