Skip to content

Test with latest OpenSearch version on CI #293

Test with latest OpenSearch version on CI

Test with latest OpenSearch version on CI #293

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ruby: 3.3
gemfile: Gemfile
elasticsearch: 8.12.0
- ruby: 3.2
gemfile: gemfiles/opensearch3.gemfile
opensearch: 2.12.0
- ruby: 3.1
gemfile: gemfiles/opensearch2.gemfile
opensearch: 2.0.0
- ruby: "3.0"
gemfile: gemfiles/opensearch1.gemfile
opensearch: 1.3.14
- ruby: "3.0"
gemfile: gemfiles/activerecord61.gemfile
elasticsearch: 7.17.16
- ruby: 3.1
gemfile: gemfiles/mongoid8.gemfile
elasticsearch: 8.0.0
mongodb: true
- ruby: "3.0"
gemfile: gemfiles/mongoid7.gemfile
elasticsearch: 7.0.0
mongodb: true
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle update
- uses: actions/cache@v3
if: ${{ matrix.elasticsearch }}
with:
path: ~/elasticsearch
key: ${{ runner.os }}-elasticsearch-${{ matrix.elasticsearch }}
- uses: ankane/setup-elasticsearch@v1
if: ${{ matrix.elasticsearch }}
with:
elasticsearch-version: ${{ matrix.elasticsearch }}
plugins: |
analysis-kuromoji
analysis-smartcn
analysis-stempel
analysis-ukrainian
- uses: actions/cache@v3
if: ${{ matrix.opensearch }}
with:
path: ~/opensearch
key: ${{ runner.os }}-opensearch-${{ matrix.opensearch }}
- uses: ankane/setup-opensearch@v1
if: ${{ matrix.opensearch }}
with:
opensearch-version: ${{ matrix.opensearch }}
plugins: |
analysis-kuromoji
analysis-smartcn
analysis-stempel
analysis-ukrainian
- uses: ankane/setup-mongodb@v1
if: ${{ matrix.mongodb }}
- run: |
sudo apt-get update
sudo apt-get install redis-server
sudo systemctl start redis-server
- run: bundle exec rake test