name: JRuby Build

on:
  push:
    branches:
    - master
  pull_request:

jobs:
  rspec-jruby:
    runs-on: ubuntu-latest
    container:
      image: jruby:9.2.8
      env:
        BUNDLE_GEMFILE: gemfiles/jruby.gemfile
    steps:
    - uses: actions/checkout@v1
    - name: Install git
      run: |
        apt-get update
        apt-get install -y --no-install-recommends git
    - name: Install deps and run RSpec
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
        bundle exec rspec

name: JRuby Build

on:
  push:
    branches:
    - master
  pull_request:

jobs:
  rspec-jruby:
    runs-on: ubuntu-latest
    env:
      BUNDLE_GEMFILE: gemfiles/jruby.gemfile

    steps:
    - uses: actions/checkout@v1
    - name: Set up Ruby
      uses: eregon/use-ruby-action@master
      with:
        ruby-version: jruby
    - name: Install Ruby deps
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
    - name: Run RSpec
      run: |
        bundle exec rspec

Update jruby CI to use use-ruby-action as well
Update jruby CI to use use-ruby-action as well
