3 on: [ push, pull_request ]
10 - uses: actions/checkout@v2
14 - uses: ./.github/actions/setup-postgresql
16 - uses: ./.github/actions/build-nominatim
18 - name: Install test prerequsites
20 sudo apt-get install -y -qq php-codesniffer python3-tidylib
21 sudo pip3 install behave nose
24 run: phpcs --report-width=120 .
26 - name: PHP unit tests
28 working-directory: test/php
31 run: behave -DREMOVE_TEMPLATE=1 --format=progress3 db osm2pgsql
32 working-directory: test/bdd
38 - uses: actions/checkout@v2
42 - uses: ./.github/actions/setup-postgresql
44 - uses: ./.github/actions/build-nominatim
46 - name: Download test extract
47 run: wget --no-verbose https://download.geofabrik.de/europe/monaco-latest.osm.pbf
49 - name: Create configuration
51 echo '<?php' > settings/local.php
52 echo " @define('CONST_Pyosmium_Binary', '/usr/lib/python3-pyosmium/pyosmium-get-changes');" >> settings/local.php
53 working-directory: build
56 run: php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --osm2pgsql-cache 500 --all
57 working-directory: build
59 - name: Import special phrases
60 run: php ./utils/specialphrases.php --wiki-import | psql -d nominatim
61 working-directory: build
64 run: php ./utils/check_import_finished.php
65 working-directory: build
69 php ./utils/update.php --init-updates
70 php ./utils/update.php --import-osmosis
71 working-directory: build