File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,37 @@ jobs:
20
20
continue-on-error : true
21
21
steps :
22
22
- uses : actions/checkout@v2
23
+
23
24
- name : Set up Ruby
24
25
uses : ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
25
26
with :
26
27
ruby-version : ${{ matrix.ruby-version }}
28
+
29
+ - name : Install compatible Bundler version
30
+ run : |
31
+ ruby_version=$(ruby -e 'print RUBY_VERSION')
32
+ major=$(echo $ruby_version | cut -d. -f1)
33
+ minor=$(echo $ruby_version | cut -d. -f2)
34
+
35
+ if [[ $major -ge 3 ]]; then
36
+ bundler_version="2.5.23"
37
+ elif [[ $major -eq 2 && $minor -ge 6 ]]; then
38
+ bundler_version="2.4.22"
39
+ else
40
+ echo "Unsupported Ruby version: $ruby_version"
41
+ exit 1
42
+ fi
43
+
44
+ echo "Installing Bundler $bundler_version for Ruby $ruby_version"
45
+ gem install bundler -v $bundler_version --no-document
46
+
27
47
- name : Install dependencies
28
48
run : bundle install
49
+
29
50
- name : Run tests
30
51
run : ruby tests/e2e/run_all_tests.rb
31
- - name : Notification
52
+
53
+ - name : Notification
32
54
if : always()
33
55
id : slack
34
56
You can’t perform that action at this time.
0 commit comments