Fix integration tests for JRuby 9.4 and 10.0 #164
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- '*-dev' | |
- '*-feature' | |
- '*-fix' | |
pull_request: | |
env: | |
JRUBY_OPTS: -J-Xmx896M | |
jobs: | |
ci: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
java-version: [8, 21] | |
ruby-version: [jruby-9.4, jruby-10] | |
bundler-version: [2.6.3, 2.7.1] | |
task: ['', integration] | |
exclude: | |
# JRuby 10 requires Java 21 minimum | |
- ruby-version: jruby-10 | |
java-version: 8 | |
# Bundler 2.7.1 requires Ruby 3.2 | |
- ruby-version: jruby-9.4 | |
bundler-version: 2.7.1 | |
fail-fast: false | |
env: | |
# speed up all those subprocesses | |
JRUBY_OPTS: --dev | |
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: Remove jruby-launcher # not sure where this is coming from but causes some specs to fail | |
run: gem uninstall -a jruby-launcher | |
- name: Remove jruby-launcher # not sure where this is coming from but causes some specs to fail | |
run: gem install bundler -v ${{ matrix.bundler-version }} | |
- name: Install dependencies | |
run: bundle _${{ matrix.bundler-version }}_ install --jobs=3 --retry=3 | |
- name: Run tests | |
run: bundle _${{ matrix.bundler-version }}_ exec rake ${{ matrix.task }} |