10 - name: Checkout source
11 uses: actions/checkout@v2.4.0
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 web bundle exec rake i18n:js:export
28 docker-compose run --rm web osmosis --rx docker/null-island.osm.xml --wd host=db database=openstreetmap user=openstreetmap password=openstreetmap validateSchemaVersion=no
29 - name: Test Basic Website
31 curl -siL http://127.0.0.1:3000 | egrep '^HTTP/1.1 200 OK'
32 curl -siL http://127.0.0.1:3000 | grep 'OpenStreetMap is the free wiki world map'
33 curl -siL http://127.0.0.1:3000/api/0.6/node/1 | grep 'Null Island'
34 - name: Test Complete Suite
36 docker-compose run --rm web bundle exec rails db:test:prepare
37 docker-compose run --rm web bundle exec rails test:all