+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: '7.4'
+ tools: phpunit, phpcs
+
+ - name: Get Date
+ id: get-date
+ run: |
+ echo "::set-output name=date::$(/bin/date -u "+%Y%W")"
+ shell: bash
+
+ - uses: actions/cache@v2
+ with:
+ path: |
+ {{ github.workspace }}/data/country_osm_grid.sql.gz
+ {{ github.workspace }}/monaco-latest.osm.pbf
+ key: nominatim-data-${{ steps.get-date.outputs.date }}
+
+ - uses: ./.github/actions/setup-postgresql
+ with:
+ postgresql-version: ${{ matrix.postgresql }}
+ postgis-version: ${{ matrix.postgis }}