Yuri Astrakhan 2ca55abb7d
Use new import-data image (#818)
This is a partial migration of https://github.com/openmaptiles/openmaptiles/pull/785

* Use `import-data` instead of `import-lakelines`, `import-water`, and `import-natural-earth`
* Upgrade docker-compose.yml to version 2.3 (allows some extra env var usage in yaml file itself)
* Remove `openmaptiles-tools:latest` usage -- no longer needed, can use current version 4.1
* `db-start` does not do a container recreation in case docker-compose.yml definition has changed.
* a few minor cleanups in quickstart.sh
2020-04-22 02:48:57 -04:00

46 lines
1.2 KiB
YAML

# MapTiler OpenMapTiles
#######################
# Workflow to validate OMT`s new Pull Requests and commits pushed into OMT repo
name: OMT_CI
# Controls when the action will run. Triggers the workflow on push and pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# jobs can run parallel
jobs:
# This workflow contains a single job called "build"
build:
# runs on ubuntu (can run on windows and mac os)
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Named steps
- name: generate all zooms
run: sed -i 's/QUICKSTART_MAX_ZOOM=7/QUICKSTART_MAX_ZOOM=14/g' .env
# Runs quickstart
- name: quickstart
env:
area: northamptonshire
run: bash ./quickstart.sh $area
- name: generate devdoc
run: TEST_MODE=yes make generate-devdoc
# todo: use artifact to store result of tests
#- uses: actions/upload-artifact@v1
# with:
# name: quickstart log file
# path: quickstart.log