From af546ffc7737717106a49cb1775d9e9174b5c2cb Mon Sep 17 00:00:00 2001 From: Barak Weiss Date: Thu, 28 Dec 2023 10:59:43 +0200 Subject: [PATCH] CI: test on multiple ruby versions. Currently, the tests were running on ruby 2.6 and using latest RubyGems. This is broken since latest RubyGems support Ruby>3. This is fine since ruby 2.7 is now deprecated. Kintsugi runs usually on macOS which comes built-in with ruby 2.6, so it's worth keep testing on that version. So this commit add tests on multiple ruby versions. --- .github/workflows/tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2948586..e8d2c06 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,9 @@ jobs: main-job: name: Main runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: [2.6, 2.7, 3.2, 3.3] steps: - name: Checkout repo @@ -18,8 +21,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6.10 - rubygems: latest + ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Run Rake