3 on: [ push, pull_request ]
10 - uses: actions/checkout@v2
17 echo "::set-output name=date::$(/bin/date -u "+%Y%W")"
20 - uses: actions/cache@v2
23 data/country_osm_grid.sql.gz
25 key: nominatim-data-${{ steps.get-date.outputs.date }}
27 - uses: ./.github/actions/setup-postgresql
28 - uses: ./.github/actions/build-nominatim
30 - name: Install test prerequsites
32 sudo apt-get install -y -qq php-codesniffer python3-tidylib
33 sudo pip3 install behave nose
36 run: phpcs --report-width=120 .
38 - name: PHP unit tests
40 working-directory: test/php
43 run: behave -DREMOVE_TEMPLATE=1 --format=progress3 db osm2pgsql
44 working-directory: test/bdd
50 - uses: actions/checkout@v2
57 echo "::set-output name=date::$(/bin/date -u "+%Y%W")"
60 - uses: actions/cache@v2
63 data/country_osm_grid.sql.gz
65 key: nominatim-data-${{ steps.get-date.outputs.date }}
67 - uses: ./.github/actions/setup-postgresql
68 - uses: ./.github/actions/build-nominatim
70 - name: Create configuration
72 echo '<?php' > settings/local.php
73 echo " @define('CONST_Pyosmium_Binary', '/usr/lib/python3-pyosmium/pyosmium-get-changes');" >> settings/local.php
74 working-directory: build
76 - name: Download import data
78 if [ ! -f monaco-latest.osm.pbf ]; then
79 wget --no-verbose https://download.geofabrik.de/europe/monaco-latest.osm.pbf
84 run: php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --osm2pgsql-cache 500 --all
85 working-directory: build
87 - name: Import special phrases
88 run: php ./utils/specialphrases.php --wiki-import | psql -d nominatim
89 working-directory: build
92 run: php ./utils/check_import_finished.php
93 working-directory: build
97 php ./utils/update.php --init-updates
98 php ./utils/update.php --import-osmosis
99 working-directory: build
101 - name: Run reverse-only import
104 php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --reverse-only --all
105 working-directory: build