From 7cb5114d112624d4f2df8fb09747cd58c22f13f1 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 14 Oct 2024 12:01:52 -0300 Subject: [PATCH] Add specific Gemfile for judoscale-rails against v7.1 Update GH matrix to skip unsupported Ruby versions on Rails 7.2 as well, (main Gemfile for now) since it requires Ruby 3.1+. --- .github/workflows/judoscale-rails-test.yml | 7 +++++++ judoscale-rails/Gemfile-rails-7-1 | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 judoscale-rails/Gemfile-rails-7-1 diff --git a/.github/workflows/judoscale-rails-test.yml b/.github/workflows/judoscale-rails-test.yml index 18e795bd..d087deb6 100644 --- a/.github/workflows/judoscale-rails-test.yml +++ b/.github/workflows/judoscale-rails-test.yml @@ -14,6 +14,7 @@ jobs: matrix: gemfile: - Gemfile + - Gemfile-rails-7-1 - Gemfile-rails-7-0 - Gemfile-rails-6-1 ruby: @@ -26,8 +27,14 @@ jobs: exclude: - gemfile: Gemfile ruby: "2.6" + - gemfile: Gemfile + ruby: "2.7" + - gemfile: Gemfile + ruby: "3.0" - gemfile: Gemfile-rails-7-0 ruby: "2.6" + - gemfile: Gemfile-rails-7-1 + ruby: "2.6" runs-on: ubuntu-latest env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps BUNDLE_GEMFILE: ${{ github.workspace }}/judoscale-rails/${{ matrix.gemfile }} diff --git a/judoscale-rails/Gemfile-rails-7-1 b/judoscale-rails/Gemfile-rails-7-1 new file mode 100644 index 00000000..bad1891c --- /dev/null +++ b/judoscale-rails/Gemfile-rails-7-1 @@ -0,0 +1,9 @@ +source "https://rubygems.org" + +gemspec name: "judoscale-rails" + +gem "judoscale-ruby", path: "../judoscale-ruby" +gem "railties", "~> 7.1" +gem "minitest" +gem "minitest-stub-const" +gem "rake"