Resolve test failure from bundler 2.2.24+ #99
Workflow file for this run
This file contains 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-20.04 | |
strategy: | |
matrix: | |
java-version: [8, 15] | |
ruby-version: [jruby-9.2.18.0, jruby-head] | |
task: ['', integration] | |
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 }} | |
bundler: 1.17.3 | |
- name: Install fixed rubygems version for non-jruby-head | |
run: gem update --system 2.7.11 | |
if: ${{ matrix.ruby-version != 'jruby-head' }} | |
# rubygems 2.7.11 is not supported on Ruby 3.1.0 (jruby-head). | |
# The oldest version supported by this ruby is 3.3.3. | |
- name: Install fixed rubygems version for jruby-head | |
run: gem update --system 3.3.3 && gem install bundler:1.17.3 | |
if: ${{ matrix.ruby-version == 'jruby-head' }} | |
- name: Install dependencies | |
run: bundle _1.17.3_ 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' }} |