Skip to content

Updates 8.x

Updates 8.x #29

Workflow file for this run

name: Ruby tests
on:
push:
branches:
- 8.x
pull_request:
branches:
- 8.x
jobs:
tests:
env:
ELASTICSEARCH_URL: http://localhost:9200
RAILS_VERSIONS: ${{ matrix.rails }}
strategy:
fail-fast: false
matrix:
rails: [ '6.1', '7.0', '7.1' ]
ruby: ['3.1', '3.2', '3.3']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Increase system limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 8.14.0-SNAPSHOT
security-enabled: false
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundle
run: |
sudo apt-get install libsqlite3-dev
gem install bundler
bundle install
bundle exec rake bundle:clean
bundle exec rake bundle:install
- name: Test elasticsearch-rails
run: cd elasticsearch-rails && bundle exec rake test:all
- name: Test elasticsearch-persistence
run: cd elasticsearch-persistence && bundle exec rake test:all
- name: Test elasticsearch-model
run: cd elasticsearch-model && bundle exec rake test:all