Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,27 +141,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: echo "ruby-3.4.0" > .ruby-version
- run: echo "ruby-3.4.12" > .ruby-version
- uses: ./
- run: ruby -v | grep -F "ruby 3.4.0"
- run: ruby -v | grep -F "ruby 3.4.12"

testToolVersions:
name: "Test .tool-versions"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: echo -e "nodejs 16.0.0\nruby 3.4.0" > .tool-versions
- run: echo -e "nodejs 16.0.0\nruby 3.4.12" > .tool-versions
- uses: ./
- run: ruby -v | grep -F "ruby 3.4.0"
- run: ruby -v | grep -F "ruby 3.4.12"

testMise:
name: "Test mise.toml"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: echo -e "[tools]\nnode = '18'\nruby = '3.4.0'" > mise.toml
- run: echo -e "[tools]\nnode = '18'\nruby = '3.4.12'" > mise.toml
- uses: ./
- run: ruby -v | grep -F "ruby 3.4.0"
- run: ruby -v | grep -F "ruby 3.4.12"

testNoGemfile:
name: "Test with no Gemfile"
Expand Down Expand Up @@ -199,7 +199,6 @@ jobs:
- { ruby: '2.6', expected_rubygems_version: '3.4.22' }
- { ruby: '2.5', expected_rubygems_version: '3.3.27' }
- { ruby: '2.3', expected_rubygems_version: '3.3.27' }
- { ruby: '2.0', expected_rubygems_version: '2.7.11' }
steps:
- uses: actions/checkout@v7
- uses: ./
Expand All @@ -226,9 +225,9 @@ jobs:
- uses: actions/checkout@v7
- uses: ./
with:
ruby-version: '3.1.0'
ruby-version: '3.1.7'
rubygems: 3.2.3
- run: gem --version | grep -F "3.3.3"
- run: gem --version | grep -F "3.3.27"

testFixedRubygemsBetaVersionUpgrades:
name: "Test rubygems: beta version upgrades RubyGems to that version if the default is older"
Expand Down Expand Up @@ -259,7 +258,7 @@ jobs:
- uses: actions/checkout@v7
- uses: ./
with:
ruby-version: '3.1.0'
ruby-version: '3.1.7'
rubygems: 3.4.0
- run: gem --version | grep -F "3.4.0"
- run: bundle --version | grep -F "2.4.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ The full list of available Ruby versions can be seen in [here for Ubuntu and mac
and in [windows-versions.json](windows-versions.json) for Windows.
Newer runner images only have builds of the latest patch release of each series,
so prefer a short version like `'3.4'` over an exact one like `'3.4.2'`, or pin to a specific runner version (e.g. `ubuntu-24.04`).
For example, `ubuntu-26.04` (which `ubuntu-latest` moves to, see [this announcement](https://github.com/actions/runner-images/issues/14748))
only has builds of CRuby 3.2 and newer, as older CRuby versions do not compile on it.
For example, `ubuntu-26.04` (which `ubuntu-latest` now points to, see [this announcement](https://github.com/actions/runner-images/issues/14748))
only has builds of CRuby 2.3 and newer, as older CRuby versions do not compile on it.

The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)
and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
Expand Down
Loading