3 on: [ push, pull_request ]
19 - uses: actions/checkout@v2
24 uses: shivammathur/setup-php@v2
32 echo "::set-output name=date::$(/bin/date -u "+%Y%W")"
35 - uses: actions/cache@v2
38 data/country_osm_grid.sql.gz
40 key: nominatim-data-${{ steps.get-date.outputs.date }}
42 - uses: ./.github/actions/setup-postgresql
44 postgresql-version: ${{ matrix.postgresql }}
45 postgis-version: ${{ matrix.postgis }}
46 - uses: ./.github/actions/build-nominatim
48 - name: Install test prerequsites
50 sudo apt-get install -y -qq php-codesniffer python3-tidylib
51 sudo pip3 install behave nose
54 run: phpcs --report-width=120 .
56 - name: PHP unit tests
58 working-directory: test/php
61 run: behave -DREMOVE_TEMPLATE=1 --format=progress3 db osm2pgsql
62 working-directory: test/bdd
68 - uses: actions/checkout@v2
75 echo "::set-output name=date::$(/bin/date -u "+%Y%W")"
78 - uses: actions/cache@v2
81 data/country_osm_grid.sql.gz
83 key: nominatim-data-${{ steps.get-date.outputs.date }}
85 - uses: ./.github/actions/setup-postgresql
87 postgresql-version: 13
89 - uses: ./.github/actions/build-nominatim
91 - name: Create configuration
93 echo '<?php' > settings/local.php
94 echo " @define('CONST_Pyosmium_Binary', '/usr/lib/python3-pyosmium/pyosmium-get-changes');" >> settings/local.php
95 working-directory: build
97 - name: Download import data
99 if [ ! -f monaco-latest.osm.pbf ]; then
100 wget --no-verbose https://download.geofabrik.de/europe/monaco-latest.osm.pbf
105 run: php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --osm2pgsql-cache 500 --all
106 working-directory: build
108 - name: Import special phrases
109 run: php ./utils/specialphrases.php --wiki-import | psql -d nominatim
110 working-directory: build
113 run: php ./utils/check_import_finished.php
114 working-directory: build
118 php ./utils/update.php --init-updates
119 php ./utils/update.php --import-osmosis
120 working-directory: build
122 - name: Run reverse-only import
125 php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --reverse-only --all
126 working-directory: build