Set BUNDLER_VERSION whenever we know which version to use

* Fixes https://github.com/ruby/setup-ruby/issues/845
This commit is contained in:
Benoit Daloze
2025-12-31 23:13:45 +01:00
parent 8a836efbce
commit 4c24fa5ec0
3 changed files with 21 additions and 8 deletions
+13
View File
@@ -352,6 +352,19 @@ jobs:
bundler: 2.2.3
- run: bundle --version | grep -F "Bundler version 2.2.3"
# https://github.com/ruby/setup-ruby/issues/845
testOlderBundlerVersion:
name: "Test with an older Bundler version than the one of the default gem"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./
with:
ruby-version: '4.0'
bundler: 2.7.2
bundler-cache: true
- run: bundle --version | grep -F "Bundler version 2.7.2"
testBundlerPre:
name: "Test with a Bundler pre/rc version"
runs-on: ubuntu-latest