]> Untitled Git - lemmy.git/blobdiff - .woodpecker.yml
Adding diesel enums for SortType and ListingType (#2808)
[lemmy.git] / .woodpecker.yml
index 9bed578c83b74a9334b2fcb615c957983e2273bc..740614094c1a96761a8f01f7adc98ec4905cd9d0 100644 (file)
@@ -95,6 +95,16 @@ pipeline:
     # when:
     #   platform: linux/amd64
 
+  check_diesel_schema:
+    image: jameshiew/diesel-cli
+    environment:
+      CARGO_HOME: .cargo
+      DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
+    commands:
+      - diesel migration run
+      - diesel print-schema --config-file=diesel.toml > tmp.schema
+      - diff tmp.schema crates/db_schema/src/schema.rs
+
   cargo_test:
     image: *muslrust_image
     environment: