name: build on: [push] jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: # 1. Run script/list_versions # 2. Check https://www.elastic.co/jp/support/eol elasticsearch: - 7.10.1 - 7.9.3 - 7.8.1 - 7.7.1 - 7.6.2 - 7.5.2 - 7.4.2 - 7.3.2 - 7.2.1 - 7.1.1 - 6.8.13 services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch-oss:${{matrix.elasticsearch}} ports: - 9200:9200 - 9300:9300 env: discovery.type: single-node steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.6 bundler-cache: true - run: bundle install --jobs 4 --retry 3 - name: Wait for elasticsearch run: timeout 60 bash -c "until curl --silent --output /dev/null localhost:9200/_cat/health?h=st; do printf '.'; sleep 5; done; printf '\n'" - run: bundle exec rspec