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