From 926338956e6914bd7983b1dd286f1aab9c3c6bd6 Mon Sep 17 00:00:00 2001 From: Jakob Skjerning Date: Fri, 6 Dec 2024 11:18:07 +0100 Subject: [PATCH] Only run rails main on newer Rubies rails main has a requirement of Ruby >= 3.2 so all Ruby versions before that fails with errors like Could not find compatible versions > Because every version of rails depends on Ruby >= 3.2.0 > and Gemfile depends on rails >= 0, > Ruby >= 3.2.0 is required. > So, because current Ruby version is = 2.7.8, > version solving has failed.Could not find compatible versions --- .github/workflows/ruby.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index d0e5e5c..8876e18 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -27,6 +27,12 @@ jobs: exclude: - rails-version: '5.2.8.1' ruby-version: '3.3' + - rails-version: 'main' + ruby-version: '2.7' + - rails-version: 'main' + ruby-version: '3.0' + - rails-version: 'main' + ruby-version: '3.1' env: RAILS_VERSION: ${{ matrix.rails-version }}