We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4303c40 commit e0c2a29Copy full SHA for e0c2a29
1 file changed
.github/workflows/main.yml
@@ -19,6 +19,15 @@ jobs:
19
bundler-cache: true
20
- name: Build and run tests
21
run: |
22
- gem install bundler
+ RUBY_VERSION_STR="${{ matrix.ruby-version }}"
23
+ case "$RUBY_VERSION_STR" in
24
+ 2.6*) BUNDLER_CONSTRAINT=">= 2, < 3" ;;
25
+ 2.7*) BUNDLER_CONSTRAINT=">= 2, < 4" ;;
26
+ 3.*) BUNDLER_CONSTRAINT=">= 3, < 4" ;;
27
+ *) BUNDLER_CONSTRAINT=">= 2" ;;
28
+ esac
29
+
30
+ gem install bundler -v "$BUNDLER_CONSTRAINT"
31
+ echo "Bundler installed: $(bundle -v)"
32
bundle install --jobs 4 --retry 3
33
bundle exec rake
0 commit comments