@@ -19,10 +19,16 @@ jobs:
19
19
fail-fast : false
20
20
21
21
matrix :
22
- ruby : [2.5.8, 2.6.6, 2.7.2, 3.0.0, jruby-9.2.16.0]
22
+ ruby : [2.5.9, 2.6.9, 2.7.5, 3.0.3, jruby-9.3.2.0]
23
+ deps : [rails_61, rails_70]
23
24
24
- env :
25
- BUNDLE_PATH : vendor/bundle
25
+ exclude :
26
+ - deps : rails_70
27
+ ruby : 2.5.9
28
+ - deps : rails_70
29
+ ruby : 2.6.9
30
+ - deps : rails_70
31
+ ruby : jruby-9.3.2.0
26
32
27
33
steps :
28
34
- uses : actions/checkout@v2
@@ -32,20 +38,22 @@ jobs:
32
38
ruby-version : ${{ matrix.ruby }}
33
39
bundler : none
34
40
35
- - name : Install a specific rubygems version
36
- run : gem update --system 3.2.0.rc.1
41
+ - name : Configure bundler (default)
42
+ run : |
43
+ echo "BUNDLE_GEMFILE=Gemfile" >> $GITHUB_ENV
44
+ echo "BUNDLE_PATH=$(pwd)/vendor/bundle" >> $GITHUB_ENV
45
+ if : matrix.deps == 'rails_70'
37
46
38
- - name : Install a specific bundler version
39
- run : gem install bundler -v 2.1.4
47
+ - name : Configure bundler (alternative)
48
+ run : |
49
+ echo "BUNDLE_GEMFILE=gemfiles/${{ matrix.deps }}.gemfile" >> $GITHUB_ENV
50
+ echo "BUNDLE_PATH=$(pwd)/gemfiles/${{ matrix.deps }}/vendor/bundle" >> $GITHUB_ENV
51
+ if : matrix.deps != 'rails_70'
40
52
41
- - name : Restore cached dependencies
42
- uses : actions/cache@v2
53
+ - uses : ruby/setup-ruby@v1
43
54
with :
44
- path : ${{ env.BUNDLE_PATH }}
45
- key : gems-${{ matrix.ruby }}-${{ hashFiles('current_gemfile.lock') }}
46
-
47
- - name : Install dependencies
48
- run : bundle install --jobs 3
55
+ ruby-version : ${{ matrix.ruby }}
56
+ bundler-cache : true
49
57
50
58
- name : Run tests
51
59
run : bundle exec rake
0 commit comments