From 366410750d595aeadca125c6ba45c1101ca07e4d Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Fri, 17 Jan 2025 14:46:47 +0100 Subject: [PATCH] Test against Ruby 3.4 (#265) * Quote ruby 3.0 in github actions Otherwise it is interpreted as `3`, pulling in the latest 3.X instead. https://github.com/actions/runner/issues/849 Signed-off-by: Earlopain <14981592+Earlopain@users.noreply.github.com> * Test against all supported ruby versions in one matrix Just the lowest and highest supported version is a bit dangerous. Previously many jobs tested against all ruby versions, this just adds it back to one in order to not inflate the checks Signed-off-by: Earlopain <14981592+Earlopain@users.noreply.github.com> * Test against Ruby 3.4 in CI Signed-off-by: Earlopain <14981592+Earlopain@users.noreply.github.com> --------- Signed-off-by: Earlopain <14981592+Earlopain@users.noreply.github.com> --- .github/workflows/lint.yml | 2 +- .github/workflows/main.yml | 6 +++--- CHANGELOG.md | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d0ce86deb..ca88e102d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,7 +10,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.0 + ruby-version: '3.0' - run: | sudo apt-get update sudo apt-get install libcurl4-openssl-dev diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f69147b29..5888ae8f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ 3.0, 3.3, jruby-9.4 ] + ruby: [ '3.0', 3.1, 3.2, 3.3, 3.4, jruby-9.4 ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -52,7 +52,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ 3.0, 3.3, jruby-9.4 ] + ruby: [ '3.0', 3.4, jruby-9.4 ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -85,7 +85,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ 3.0, 3.3, jruby-9.4 ] + ruby: [ '3.0', 3.4, jruby-9.4 ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 07e4229a4..748eebf77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Added - Added an API Generator ([#233](https://github.com/opensearch-project/opensearch-ruby/issues/233)) - Added a workflow to generate API methods from OpenSearch API Spec +- Added support for Ruby 3.4 ([#265](https://github.com/opensearch-project/opensearch-ruby/pull/265)) ### Changed - Restructured the API methods and modules to be more efficient and intuitive ### Deprecated