Skip to content

Commit 9c77ec0

Browse files
authored
set default ruby version (#2075)
While working on resolving some dependabot alerts, I noticed that dependabot could not resolve our Ruby dependency files because it was using Ruby 2.7.6.
1 parent 5d0e075 commit 9c77ec0

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
env:
8282
RAISE_ON_WARNING: 1
8383
RAILS_VERSION: ${{ matrix.rails_version }}
84+
RUBY_VERSION: ${{ matrix.ruby_version }}
8485
CAPTURE_PATCH_ENABLED: ${{ matrix.mode == 'capture_patch_enabled' && 'true' || 'false' }}
8586
- name: Upload coverage results
8687
uses: actions/[email protected]

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- name: Setup Ruby
7171
uses: ruby/setup-ruby@v1
7272
with:
73-
ruby-version: 3.2
73+
ruby-version: 3.3
7474
- uses: actions/cache@v4
7575
with:
7676
path: vendor/bundle

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ gemspec
55

66
rails_version = (ENV["RAILS_VERSION"] || "~> 7.0.0").to_s
77
gem "rails", (rails_version == "main") ? {git: "https://github.com/rails/rails", ref: "main"} : rails_version
8+
9+
ruby_version = (ENV["RUBY_VERSION"] || "~> 3.3").to_s
10+
ruby ruby_version

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,5 +365,8 @@ DEPENDENCIES
365365
yard (~> 0.9.34)
366366
yard-activesupport-concern (~> 0.0.1)
367367

368+
RUBY VERSION
369+
ruby 3.3.0p0
370+
368371
BUNDLED WITH
369372
2.5.3

0 commit comments

Comments
 (0)