Skip to content

Commit 6b84832

Browse files
authored
Reduce JRuby Tests (#45)
These tests are time consuming and unnecessarily flaky at times. As, GitHub actions has no support for running failed jobs only, it becomes too time consuming to get these tests passing.
1 parent 2f570d3 commit 6b84832

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/jruby-ruby-project.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ concurrency:
1111

1212
jobs:
1313
main:
14-
name: ruby-${{ matrix.ruby }} rspec-${{ matrix.rspec }} simplecov-${{ matrix.simplecov }}
14+
name: ${{ matrix.ruby }} rspec-${{ matrix.rspec }} simplecov-${{ matrix.simplecov }}
1515
runs-on: ubuntu-latest
1616

1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
ruby: [ 'jruby-9.2.10.0', 'jruby-9.2.19.0', 'jruby-9.3.0.0' ]
21-
rspec: [ '3.6.0', '3.7.0', '3.8.0', '3.9.0', '3.10.0' ]
22-
simplecov: [ '0.12.0', '0.13.0', '0.14.0', '0.15.0', '0.16.0', '0.17.0', '0.18.0', '0.19.0', '0.20.0', '0.21.0' ]
20+
ruby: [ 'jruby-9.2.10.0', 'jruby-9.2.14.0', 'jruby-9.2.19.0', 'jruby-9.3.0.0', 'jruby-head' ]
21+
rspec: [ '3.10.0' ]
22+
simplecov: [ '0.21.0' ]
2323

2424
steps:
2525
- name: Checkout

lib/rspec_tracer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def simplecov?
130130
private
131131

132132
def valid_jruby_opts?
133+
require 'jruby'
134+
133135
return true if Java::OrgJruby::RubyInstanceConfig.FULL_TRACE_ENABLED &&
134136
JRuby.runtime.object_space_enabled?
135137

0 commit comments

Comments
 (0)