Switched to running Ghost in CI migration tests

- if we only run 'knex-migrator init', the settings don't get populated like
  they would when running Ghost
- switching to running Ghost for initialization is more realistic of
  what would happen IRL
This commit is contained in:
Daniel Lockyer 2020-11-11 10:33:18 +00:00
parent ee5d0e962d
commit d67683d7e6
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ jobs:
mysql root password: 'root'
- run: yarn
- run: yarn knex-migrator init
- run: |
node index.js &
sleep 10 && { kill $! && wait $!; } 2>/dev/null
- run: yarn knex-migrator rollback --v 3.0 --force
- run: yarn knex-migrator migrate --force