Run database migration on CI

This commit is contained in:
Kitaiti Makoto 2021-01-16 15:58:54 +09:00
parent c3c8f6804b
commit 06962514fe

View file

@ -141,6 +141,9 @@ jobs:
steps: steps:
- restore_env: - restore_env:
cache: <<#parameters.postgres>>postgres<</ parameters.postgres>><<^parameters.postgres>>sqlite<</parameters.postgres>> cache: <<#parameters.postgres>>postgres<</ parameters.postgres>><<^parameters.postgres>>sqlite<</parameters.postgres>>
- run_migration:
cmd: |
cargo run -p plume-cli -- migration run
- run_with_coverage: - run_with_coverage:
cmd: | cmd: |
cmd="cargo test --all --exclude plume-front --exclude plume-macro --no-run --no-default-features --features=${FEATURES} -j" cmd="cargo test --all --exclude plume-front --exclude plume-macro --no-run --no-default-features --features=${FEATURES} -j"