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
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
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: ./nominatim import --osm-file ../monaco-latest.osm.pbf
105 working-directory: build
107 - name: Import special phrases
108 run: ./nominatim special-phrases --from-wiki | psql -d nominatim
109 working-directory: build
112 run: ./nominatim check-database
113 working-directory: build
117 ./nominatim replication --init
118 ./nominatim replication --once
119 working-directory: build
121 - name: Run reverse-only import
124 php ./nominatim import --osm-file ../monaco-latest.osm.pbf --reverse-only
125 working-directory: build