also check formatting, more extensive cargo check

This commit is contained in:
Felix Ableitner 2020-12-11 14:57:43 +01:00
parent 08748bbede
commit 8b0374cc4e
3 changed files with 43 additions and 38 deletions

View file

@ -9,10 +9,15 @@ steps:
commands: commands:
- chown 1000:1000 . -R - chown 1000:1000 . -R
- name: check formatting
image: ekidd/rust-musl-builder:1.47.0
commands:
- cargo fmt -- --check
- name: cargo check - name: cargo check
image: ekidd/rust-musl-builder:1.47.0 image: ekidd/rust-musl-builder:1.47.0
commands: commands:
- cargo check --all - cargo check --workspace --all-targets
- name: cargo clippy - name: cargo clippy
image: ekidd/rust-musl-builder:1.47.0 image: ekidd/rust-musl-builder:1.47.0

View file

@ -557,38 +557,38 @@ joinable!(user_mention -> comment (comment_id));
joinable!(user_mention -> user_ (recipient_id)); joinable!(user_mention -> user_ (recipient_id));
allow_tables_to_appear_in_same_query!( allow_tables_to_appear_in_same_query!(
activity, activity,
category, category,
comment, comment,
comment_aggregates_fast, comment_aggregates_fast,
comment_like, comment_like,
comment_report, comment_report,
comment_saved, comment_saved,
community, community,
community_aggregates_fast, community_aggregates_fast,
community_follower, community_follower,
community_moderator, community_moderator,
community_user_ban, community_user_ban,
mod_add, mod_add,
mod_add_community, mod_add_community,
mod_ban, mod_ban,
mod_ban_from_community, mod_ban_from_community,
mod_lock_post, mod_lock_post,
mod_remove_comment, mod_remove_comment,
mod_remove_community, mod_remove_community,
mod_remove_post, mod_remove_post,
mod_sticky_post, mod_sticky_post,
password_reset_request, password_reset_request,
post, post,
post_aggregates_fast, post_aggregates_fast,
post_like, post_like,
post_read, post_read,
post_report, post_report,
post_saved, post_saved,
private_message, private_message,
site, site,
user_, user_,
user_ban, user_ban,
user_fast, user_fast,
user_mention, user_mention,
); );

View file

@ -98,6 +98,6 @@ async fn main() -> Result<(), LemmyError> {
fn init() { fn init() {
use lemmy_db::tests::establish_unpooled_connection; use lemmy_db::tests::establish_unpooled_connection;
let conn = establish_unpooled_connection(); let conn = establish_unpooled_connection();
embedded_migrations::run(&conn).unwrap(); embedded_migrations::run(&conn).unwrap();
run_advanced_migrations(&conn).unwrap(); run_advanced_migrations(&conn).unwrap();
} }