diff --git a/.github/workflows/2.5.yml b/.github/workflows/2.5.yml deleted file mode 100644 index 27fc3c528..000000000 --- a/.github/workflows/2.5.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Ruby 2.5 -on: - push: - branches: - - main - pull_request: - branches: - - main - workflow_dispatch: - branches: - - '*' -jobs: - tests: - env: - TEST_ES_SERVER: http://localhost:9200 - RAILS_VERSIONS: '5.0,6.0' - strategy: - fail-fast: false - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - 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: opensearch-project/opensearch-ruby/.github/actions/opensearch@main - with: - cluster-version: 2 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.5 - - 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 opensearch-rails - run: cd opensearch-rails && bundle exec rake test:all - - name: Test opensearch-persistence - run: cd opensearch-persistence && bundle exec rake test:all - - name: Test opensearch-model - run: cd opensearch-model && bundle exec rake test:all - diff --git a/.github/workflows/2.6.yml b/.github/workflows/2.6.yml deleted file mode 100644 index aa11e8573..000000000 --- a/.github/workflows/2.6.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Ruby 2.6 -on: - push: - branches: - - main - pull_request: - branches: - - main - workflow_dispatch: - branches: - - '*' -jobs: - tests: - env: - TEST_ES_SERVER: http://localhost:9200 - RAILS_VERSIONS: '5.0,6.0' - strategy: - fail-fast: false - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - 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: opensearch-project/opensearch-ruby/.github/actions/opensearch@main - with: - cluster-version: 2 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.6 - - 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 opensearch-rails - run: cd opensearch-rails && bundle exec rake test:all - - name: Test opensearch-persistence - run: cd opensearch-persistence && bundle exec rake test:all - - name: Test opensearch-model - run: cd opensearch-model && bundle exec rake test:all diff --git a/.github/workflows/2.7.yml b/.github/workflows/2.7.yml index 69b5cf3e8..d5da70cfe 100644 --- a/.github/workflows/2.7.yml +++ b/.github/workflows/2.7.yml @@ -13,7 +13,7 @@ jobs: tests: env: TEST_ES_SERVER: http://localhost:9200 - RAILS_VERSIONS: '5.0,6.0' + RAILS_VERSIONS: '6.1,7.1' strategy: fail-fast: false runs-on: ubuntu-latest @@ -34,7 +34,7 @@ jobs: - name: Bundle run: | sudo apt-get install libsqlite3-dev - gem install bundler + gem install bundler -v 2.4.22 bundle install bundle exec rake bundle:clean bundle exec rake bundle:install diff --git a/.github/workflows/2.4.yml b/.github/workflows/3.2.yml similarity index 94% rename from .github/workflows/2.4.yml rename to .github/workflows/3.2.yml index 4377af149..8bae5452d 100644 --- a/.github/workflows/2.4.yml +++ b/.github/workflows/3.2.yml @@ -1,4 +1,4 @@ -name: Ruby 2.4 +name: Ruby 3.2 on: push: branches: @@ -13,7 +13,7 @@ jobs: tests: env: TEST_ES_SERVER: http://localhost:9200 - RAILS_VERSIONS: '5.0' + RAILS_VERSIONS: '7.1' strategy: fail-fast: false runs-on: ubuntu-latest @@ -30,7 +30,7 @@ jobs: cluster-version: 2 - uses: ruby/setup-ruby@v1 with: - ruby-version: 2.4 + ruby-version: 3.2 - name: Bundle run: | sudo apt-get install libsqlite3-dev