Skip to content

Commit 1e111d6

Browse files
st0012vinistock
andcommitted
Run tests against TruffleRuby head
Co-authored-by: Vinicius Stock <[email protected]>
1 parent ef346df commit 1e111d6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
fail-fast: false
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
11-
ruby: ["3.0", "3.1", "3.2"]
11+
ruby: ["3.0", "3.1", "3.2", "truffleruby-head"]
1212
exclude:
1313
- os: windows-latest
14-
ruby: "3.3"
14+
ruby: "truffleruby-head"
1515
runs-on: ${{ matrix.os }}
1616
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
1717
steps:

test/test_helper.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
require "minitest/autorun"
1111
require "minitest/reporters"
1212
require "tempfile"
13-
require "debug"
1413
require "mocha/minitest"
1514

16-
sorbet_paths = Gem.loaded_specs["sorbet-runtime"].full_require_paths.freeze
17-
DEBUGGER__::CONFIG[:skip_path] = Array(DEBUGGER__::CONFIG[:skip_path]) + sorbet_paths
15+
unless RUBY_ENGINE == "truffleruby" || RUBY_PLATFORM =~ /mingw|mswin/
16+
require "debug"
17+
sorbet_paths = Gem.loaded_specs["sorbet-runtime"].full_require_paths.freeze
18+
DEBUGGER__::CONFIG[:skip_path] = Array(DEBUGGER__::CONFIG[:skip_path]) + sorbet_paths
19+
end
1820

1921
minitest_reporter = if ENV["SPEC_REPORTER"]
2022
Minitest::Reporters::SpecReporter.new(color: true)

0 commit comments

Comments
 (0)