Skip to content

Filter by Geo spatial rectangle #58

Filter by Geo spatial rectangle

Filter by Geo spatial rectangle #58

Workflow file for this run

---
name: Tests
'on': [push]
env:
SOLR_URL: http://localhost:8983/solr/test-core
jobs:
rspec:
name: Rspec on Ruby ${{ matrix.ruby }} with Solr ${{ matrix.solr }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.2']
solr: ['8.11.2']
services:
solr:
image: solr:${{ matrix.solr }}
ports:
- 8983:8983
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Prepare default configset
run: |
container_id=$(docker ps -q)
docker exec -u 0 $container_id sh -c "mkdir /var/solr/data/configsets \
&& cp -R /opt/solr/server/solr/configsets/_default /var/solr/data/configsets/ \
&& chown -R solr:solr /var/solr/data/configsets"
- name: Create a test core
run: |
curl 'http://localhost:8983/solr/admin/cores?action=CREATE&name=test-core&configSet=_default'
- name: Disable field type guessing
run: |
curl http://localhost:8983/solr/test-core/config -d '{"set-user-property": {"update.autoCreateFields":"false"}}'
- name: Rspec
run: bundle exec rspec --format progress