3 on: [ push, pull_request ]
10 - uses: actions/checkout@v2
14 - uses: ./.github/actions/build-nominatim
16 - name: Install test prerequsites
18 sudo apt-get install -y -qq php-codesniffer python3-tidylib
19 sudo pip3 install behave nose
22 run: phpcs --report-width=120 .
24 - name: Setup database
26 sudo systemctl start postgresql
27 sudo -u postgres createuser -S www-data
28 sudo -u postgres createuser -s runner
31 - name: PHP unit tests
33 working-directory: test/php
36 run: behave -DREMOVE_TEMPLATE=1 --format=progress3 db osm2pgsql
37 working-directory: test/bdd
43 - uses: actions/checkout@v2
47 - uses: ./.github/actions/build-nominatim
49 - name: Download test extract
50 run: wget --no-verbose https://download.geofabrik.de/europe/monaco-latest.osm.pbf
52 - name: Setup database
54 sudo systemctl start postgresql
55 sudo -u postgres createuser -S www-data
56 sudo -u postgres createuser -s runner
59 - name: Create configuartion
61 echo '<?php' > settings/local.php
62 echo " @define('CONST_Pyosmium_Binary', '/usr/lib/python3-pyosmium/pyosmium-get-changes');" >> settings/local.php
63 working-directory: build
66 run: php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --osm2pgsql-cache 500 --all
67 working-directory: build
69 - name: Import special phrases
70 run: php ./utils/specialphrases.php --wiki-import | psql -d nominatim
71 working-directory: build
74 run: php ./utils/check_import_finished.php
75 working-directory: build
79 php ./utils/update.php --init-updates
80 php ./utils/update.php --import-osmosis
81 working-directory: build