Skip to content

Commit 1503770

Browse files
committed
CI: Simplify unstable.yml in favor of setup-ruby over manual RVM setup
1 parent 8c9718f commit 1503770

File tree

1 file changed

+12
-30
lines changed

1 file changed

+12
-30
lines changed

.github/workflows/unstable.yml

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,24 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-16.04
9+
runs-on: ubuntu-latest
1010

1111
strategy:
1212
matrix:
1313
ruby: [ruby-head, jruby-head]
1414

15+
env:
16+
BUNDLE_WITHOUT: "benchmark"
17+
JRUBY_OPTS: "--debug"
18+
1519
steps:
1620
- uses: actions/checkout@v3
1721

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
4227

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

0 commit comments

Comments
 (0)