Update .woodpecker.yml

This commit is contained in:
dullbananas 2023-12-22 17:51:36 -07:00 committed by GitHub
parent 4dd36f1a15
commit 057315749a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,9 @@ variables:
- "src/**" - "src/**"
- "**/Cargo.toml" - "**/Cargo.toml"
- "Cargo.lock" - "Cargo.lock"
# database migrations # sql code
- "migrations/**" - "migrations/**"
- "replaceable_schema.sql"
# typescript tests # typescript tests
- "api_tests/**" - "api_tests/**"
# config files and scripts used by ci # config files and scripts used by ci
@ -162,6 +163,7 @@ steps:
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
commands: commands:
- diesel migration run - diesel migration run
- psql -f replaceable_schema.sql $DATABASE_URL
- diesel migration redo - diesel migration redo
when: *slow_check_paths when: *slow_check_paths