Skip to content

Commit 8d23323

Browse files
committed
Tweak bundler installation
1 parent abd97fb commit 8d23323

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: Test
44
on:
55
push:
66
branches:
7-
- main
7+
- main
88
pull_request:
99
branches:
10-
- main
10+
- main
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
@@ -22,12 +22,18 @@ jobs:
2222
with:
2323
ruby-version: ${{ matrix.ruby-version }}
2424
bundler-cache: true
25+
- name: Install Bundler
26+
run: |
27+
if [[ "${{ matrix.ruby-version }}" == "2.6" || "${{ matrix.ruby-version }}" == "2.7" ]]; then
28+
gem install bundler -v "~> 2.4.0"
29+
else
30+
gem install bundler
31+
fi
2532
- name: Build and run tests
2633
env:
2734
COVERAGE: true
2835
TERM: xterm
2936
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3037
run: |
31-
gem install bundler
3238
bundle install --jobs 4 --retry 3
33-
bundle exec rake test
39+
bundle exec rake test

0 commit comments

Comments
 (0)