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 {{ github.workspace }}/data/country_osm_grid.sql.gz
39 {{ github.workspace }}/monaco-latest.osm.pbf
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
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 {{ github.workspace }}/data/country_osm_grid.sql.gz
82 {{ github.workspace }}/monaco-latest.osm.pbf
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 "NOMINATIM_PYOSMIUM_BINARY=/usr/lib/python3-pyosmium/pyosmium-get-changes" >> .env
94 working-directory: build
96 - name: Download import data
98 if [ ! -f monaco-latest.osm.pbf ]; then
99 wget --no-verbose https://download.geofabrik.de/europe/monaco-latest.osm.pbf
104 run: php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --osm2pgsql-cache 500 --all
105 working-directory: build
107 - name: Import special phrases
108 run: php ./utils/specialphrases.php --wiki-import | psql -d nominatim
109 working-directory: build
112 run: php ./utils/check_import_finished.php
113 working-directory: build
117 php ./utils/update.php --init-updates
118 php ./utils/update.php --import-osmosis
119 working-directory: build
121 - name: Run reverse-only import
124 php ./utils/setup.php --osm-file ../monaco-latest.osm.pbf --reverse-only --all
125 working-directory: build