Skip to content

Resolve test failures on JRuby 9.4 #106

Resolve test failures on JRuby 9.4

Resolve test failures on JRuby 9.4 #106

Workflow file for this run

name: CI
on:
push:
branches:
- master
- /-dev|-feature|-fix/
pull_request:
env:
JRUBY_OPTS: -J-Xmx896M
jobs:
ci:
runs-on: ubuntu-20.04
strategy:
matrix:
java-version: [8, 11, 15]
ruby-version: [jruby-9.2.21.0, jruby-9.3.13.0, jruby-9.4.5.0, jruby-head]
bundler-version: [1.17.3, 2.3.26, 2.4.21]
task: ['', integration]
exclude:
- ruby-version: jruby-9.2.21.0
bundler-version: 2.4.21
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: ${{ matrix.java-version }}
- name: Set up ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install bundler ${{ matrix.bundler-version }}
run: gem install bundler:${{ matrix.bundler-version }}
if: ${{ matrix.ruby-version == 'jruby-9.2.21.0' }}
- name: Install latest rubygems version with bundler ${{ matrix.bundler-version }}
run: gem update --system && gem install bundler:${{ matrix.bundler-version }}
if: ${{ matrix.ruby-version != 'jruby-9.2.21.0' }}
- name: Install dependencies
run: bundle _${{ matrix.bundler-version }}_ install --jobs=3 --retry=3
- name: Run tests
run: bundle exec rake ${{ matrix.TASK }}
if: ${{ matrix.ruby-version != 'jruby-head' }}
- name: Run tests
run: bundle exec rake ${{ matrix.TASK }} || exit 0
if: ${{ matrix.ruby-version == 'jruby-head' }}