Files
Nominatim/.github/actions/setup-postgresql/action.yml
Sarah Hoffmann bd04c49bc1 actions: tweak database settings
Disabling fsync and friends should speed up the CI run
significantly.
2020-10-28 11:10:14 +01:00

24 lines
855 B
YAML

name: 'Setup Postgresql and Postgis'
runs:
using: "composite"
steps:
- name: Install postgis
run: sudo apt-get install -y -qq postgresql-13-postgis-3 postgresql-13-postgis-3-scripts postgresql-server-dev-13
shell: bash
- name: Adapt postgresql configuration
run: |
echo 'fsync = off' | sudo tee /etc/postgresql/13/main/conf.d/local.conf
echo 'synchronous_commit = off' | sudo tee -a /etc/postgresql/13/main/conf.d/local.conf
echo 'full_page_writes = off' | sudo tee -a /etc/postgresql/13/main/conf.d/local.conf
shell: bash
- name: Setup database
run: |
sudo systemctl start postgresql
sudo -u postgres createuser -S www-data
sudo -u postgres createuser -s runner
shell: bash