10 - name: Checkout source
11 uses: actions/checkout@v1
14 cp config/example.storage.yml config/storage.yml
15 cp config/docker.database.yml config/database.yml
16 touch config/settings.local.yml
17 - name: Build Docker Image
20 - name: Start Docker-Compose
23 sleep 15 # let the DB warm up a little
24 - name: Prepare Database
26 docker-compose run --rm web rake db:migrate
27 docker-compose run --rm web osmosis --rx docker/null-island.osm.xml --wd host=db database=openstreetmap user=openstreetmap password=openstreetmap validateSchemaVersion=no
28 - name: Test Basic Website
30 curl -siL http://127.0.0.1:3000 | egrep '^HTTP/1.1 200 OK'
31 curl -siL http://127.0.0.1:3000 | grep 'OpenStreetMap is the free wiki world map'
32 curl -siL http://127.0.0.1:3000/api/0.6/node/1 | grep 'Null Island'