Skip to content

Commit

Permalink
Only run rails main on newer Rubies
Browse files Browse the repository at this point in the history
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
  • Loading branch information
koppen committed Dec 6, 2024
1 parent 1c99b41 commit 9263389
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9263389

Please sign in to comment.