Skip to content

Commit

Permalink
Merge branch 'main' into image-mode-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Nov 19, 2024
2 parents 75a5c3e + 417e18e commit 8549972
Show file tree
Hide file tree
Showing 227 changed files with 5,489 additions and 2,967 deletions.
30 changes: 15 additions & 15 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,11 @@ steps:
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
commands:
- <<: *install_diesel_cli
- cp crates/db_schema/src/schema.rs tmp.schema
- diesel migration run
- diesel print-schema --config-file=diesel.toml > tmp.schema
- diff tmp.schema crates/db_schema/src/schema.rs
when: *slow_check_paths

check_db_perf_tool:
image: *rust_image
environment:
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
RUST_BACKTRACE: "1"
CARGO_HOME: .cargo_home
commands:
# same as scripts/db_perf.sh but without creating a new database server
- cargo run --package lemmy_db_perf -- --posts 10 --read-post-pages 1
when: *slow_check_paths

cargo_clippy:
image: *rust_image
environment:
Expand Down Expand Up @@ -221,6 +210,17 @@ steps:
- diff before.sqldump after.sqldump
when: *slow_check_paths

check_db_perf_tool:
image: *rust_image
environment:
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
RUST_BACKTRACE: "1"
CARGO_HOME: .cargo_home
commands:
# same as scripts/db_perf.sh but without creating a new database server
- cargo run --package lemmy_db_perf -- --posts 10 --read-post-pages 1
when: *slow_check_paths

run_federation_tests:
image: node:22-bookworm-slim
environment:
Expand Down Expand Up @@ -290,14 +290,14 @@ steps:
when:
- event: tag

notify_on_failure:
notify_on_build:
image: alpine:3
commands:
- apk add curl
- "curl -d'Lemmy CI build failed: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
- "curl -d'Lemmy CI build ${CI_PIPELINE_STATUS}: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
when:
- event: [pull_request, tag]
status: failure
status: [failure, success]

notify_on_tag_deploy:
image: alpine:3
Expand Down
Loading

0 comments on commit 8549972

Please sign in to comment.