Skip to content

Commit f357e26

Browse files
committed
Skip simplecov on Truffule Ruby, use latest JRuby
1 parent 356e6d1 commit f357e26

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-20.04, macos-latest]
12-
ruby-version: [2.6.6, 2.7.2, 3.0.1, 3.1, 3.2, jruby-9.3.2.0, jruby-9.4.0.0, truffleruby]
12+
ruby-version: [2.6, 2.7, 3.0, 3.1, 3.2, jruby-9.3, jruby-9.4, truffleruby]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v2

test/test_helper.rb

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
require 'simplecov'
2-
require 'simplecov-lcov'
3-
4-
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
5-
SimpleCov::Formatter::LcovFormatter.config.output_directory = 'coverage'
6-
SimpleCov::Formatter::LcovFormatter.config.lcov_file_name = 'lcov.info'
7-
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
8-
SimpleCov.start do
9-
add_filter "test/"
10-
add_filter "vendor/"
11-
add_filter "lib/onelogin/ruby-saml/logging.rb"
1+
unless defined?(TruffleRuby)
2+
require 'simplecov'
3+
require 'simplecov-lcov'
4+
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
5+
SimpleCov::Formatter::LcovFormatter.config.output_directory = 'coverage'
6+
SimpleCov::Formatter::LcovFormatter.config.lcov_file_name = 'lcov.info'
7+
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
8+
SimpleCov.start do
9+
add_filter "test/"
10+
add_filter "vendor/"
11+
add_filter "lib/onelogin/ruby-saml/logging.rb"
12+
end
1213
end
1314

1415
require 'stringio'

0 commit comments

Comments
 (0)