summaryrefslogtreecommitdiff
path: root/.github/workflows/ubuntu-jruby.yml
blob: d39b624426c7834f0e9c7e17181781c63019d5cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: ubuntu-jruby

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ 'jruby-9.2.9.0', 'jruby-head' ]
    steps:
    - name: Install libraries
      run: sudo apt install haveged
    - uses: actions/checkout@master
    - name: Set up RVM
      run: |
        curl -sSL https://get.rvm.io | bash
    - name: Set up Ruby
      run: |
        source $HOME/.rvm/scripts/rvm
        rvm install ${{ matrix.ruby }} --binary
        rvm --default use ${{ matrix.ruby }}
    - name: Install dependencies
      run: |
        source $HOME/.rvm/scripts/rvm
        gem install bundler --no-document
        bundle install
    - name: Run test
      run: |
        source $HOME/.rvm/scripts/rvm
        rake
      continue-on-error: true