File tree Expand file tree Collapse file tree 1 file changed +12
-30
lines changed Expand file tree Collapse file tree 1 file changed +12
-30
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
test :
9
- runs-on : ubuntu-16.04
9
+ runs-on : ubuntu-latest
10
10
11
11
strategy :
12
12
matrix :
13
13
ruby : [ruby-head, jruby-head]
14
14
15
+ env :
16
+ BUNDLE_WITHOUT : " benchmark"
17
+ JRUBY_OPTS : " --debug"
18
+
15
19
steps :
16
20
- uses : actions/checkout@v3
17
21
18
- - name : Set up RVM
19
- run : curl -sSL https://get.rvm.io | bash
20
-
21
- - name : Set up Ruby
22
- run : |
23
- source $HOME/.rvm/scripts/rvm
24
- rvm install ${{ matrix.ruby }} --binary --autolibs=disable
25
- rvm --default use ${{ matrix.ruby }}
26
-
27
- - name : Install java
28
- run : sudo apt-get -y install openjdk-8-jre-headless
29
- if : matrix.ruby == 'jruby-head'
30
-
31
- - name : Install dependencies
32
- run : |
33
- source $HOME/.rvm/scripts/rvm
34
- bundle config set --local without benchmark
35
- bundle install --jobs=3
36
-
37
- - name : Run tests (MRI)
38
- run : |
39
- source $HOME/.rvm/scripts/rvm
40
- bundle exec rake
41
- if : matrix.ruby == 'ruby-head'
22
+ - name : Setup ruby
23
+ uses : ruby/setup-ruby@v1
24
+ with :
25
+ ruby-version : ${{ matrix.ruby }}
26
+ bundler-cache : true # 'bundle install' and cache
42
27
43
- - name : Run tests (JRuby)
44
- run : |
45
- source $HOME/.rvm/scripts/rvm
46
- JRUBY_OPTS=--debug bundle exec rake
47
- if : matrix.ruby == 'jruby-head'
28
+ - name : Run tests
29
+ run : bundle exec rake
You can’t perform that action at this time.
0 commit comments