Save DB schema during test run (#891)
Places the output of `pg_dump --schema-only` into the saved build artifact as `schema.sql` Closes #877
This commit is contained in:
parent
19673b5592
commit
cec49b23ba
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@ -196,6 +196,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
DB_SIZE_MB=$(docker-compose run --rm -u $(id -u):$(id -g) openmaptiles-tools psql.sh -qtAc 'select pg_database_size(current_database())/1024/1024;')
|
DB_SIZE_MB=$(docker-compose run --rm -u $(id -u):$(id -g) openmaptiles-tools psql.sh -qtAc 'select pg_database_size(current_database())/1024/1024;')
|
||||||
fi
|
fi
|
||||||
|
docker-compose run --rm -u $(id -u):$(id -g) openmaptiles-tools pg_dump --schema-only > "${PROFILE_DIR}/schema.sql"
|
||||||
echo "$DB_SIZE_MB" > "${PROFILE_DIR}/db_size.tsv"
|
echo "$DB_SIZE_MB" > "${PROFILE_DIR}/db_size.tsv"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user