X-Git-Url: http://these/git/?a=blobdiff_plain;f=.woodpecker.yml;h=a3c1f1194ab1b506de8acb9d022b420070a3c5b0;hb=bed9474cf05af9e6935365681a4761544115b58a;hp=91779122a2c6e2e92b1125ae0439cf3d963bd63a;hpb=58388f2ce8a4dccfc9faf03bffc3656993c97e85;p=lemmy.git diff --git a/.woodpecker.yml b/.woodpecker.yml index 91779122..a3c1f119 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -83,6 +83,18 @@ pipeline: - rustup component add rustfmt --toolchain nightly-2023-07-10 - cargo +nightly-2023-07-10 fmt -- --check + sql_fmt: + image: alpine:3 + commands: + - apk add bash wget perl make git + - wget https://github.com/darold/pgFormatter/archive/refs/tags/v5.5.tar.gz + - tar xzf v5.5.tar.gz + - cd pgFormatter-5.5 + - perl Makefile.PL + - make && make install + - cd .. + - ./scripts/./sql_format_check.sh + # make sure api builds with default features (used by other crates relying on lemmy api) check_api_common_default_features: image: *muslrust_image @@ -145,7 +157,7 @@ pipeline: environment: CARGO_HOME: .cargo commands: - # when adding new clippy lints, make sure to also add them in scripts/fix-clippy.sh + # when adding new clippy lints, make sure to also add them in scripts/lint.sh - rustup component add clippy - cargo clippy --workspace --tests --all-targets --features console -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity