Skip to content

Commit fee66c4

Browse files
committed
Run tests against TruffleRuby head
1 parent 7488bde commit fee66c4

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
ruby: ["2.7", "3.0", "3.1", "3.2"]
11+
ruby: ["2.7", "3.0", "3.1", "3.2", "truffleruby-head"]
1212
name: Ruby ${{ matrix.ruby }}
1313
steps:
1414
- uses: actions/checkout@v3

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source "https://rubygems.org"
55
gemspec
66

77
gem "bundler", "~> 2.4.2"
8-
gem "debug", "~> 1.7", require: false
8+
gem "debug", "~> 1.7", require: false, platforms: :mri
99
gem "minitest", "~> 5.18"
1010
gem "minitest-reporters", "~> 1.6"
1111
gem "mocha", "~> 2.0"

Gemfile.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,17 @@ GEM
4040
i18n (1.12.0)
4141
concurrent-ruby (~> 1.0)
4242
io-console (0.6.0)
43+
io-console (0.6.0-java)
4344
irb (1.6.3)
4445
reline (>= 0.3.0)
4546
json (2.6.3)
47+
json (2.6.3-java)
4648
language_server-protocol (3.17.0.3)
4749
loofah (2.19.1)
4850
crass (~> 1.0.2)
4951
nokogiri (>= 1.5.9)
5052
method_source (1.0.0)
53+
mini_portile2 (2.8.1)
5154
minitest (5.18.0)
5255
minitest-reporters (1.6.0)
5356
ansi
@@ -57,8 +60,13 @@ GEM
5760
mocha (2.0.2)
5861
ruby2_keywords (>= 0.0.5)
5962
netrc (0.11.0)
63+
nokogiri (1.14.2)
64+
mini_portile2 (~> 2.8.0)
65+
racc (~> 1.4)
6066
nokogiri (1.14.2-arm64-darwin)
6167
racc (~> 1.4)
68+
nokogiri (1.14.2-java)
69+
racc (~> 1.4)
6270
nokogiri (1.14.2-x86_64-darwin)
6371
racc (~> 1.4)
6472
nokogiri (1.14.2-x86_64-linux)
@@ -68,6 +76,7 @@ GEM
6876
ast (~> 2.4.1)
6977
prettier_print (1.2.1)
7078
racc (1.6.2)
79+
racc (1.6.2-java)
7180
rack (2.2.6.4)
7281
rack-test (2.1.0)
7382
rack (>= 1.3)
@@ -119,6 +128,7 @@ GEM
119128
sorbet (0.5.10761)
120129
sorbet-static (= 0.5.10761)
121130
sorbet-runtime (0.5.10761)
131+
sorbet-static (0.5.10761-java)
122132
sorbet-static (0.5.10761-universal-darwin-14)
123133
sorbet-static (0.5.10761-universal-darwin-15)
124134
sorbet-static (0.5.10761-universal-darwin-16)
@@ -162,6 +172,8 @@ GEM
162172

163173
PLATFORMS
164174
arm64-darwin
175+
ruby
176+
universal-java-11
165177
x86_64-darwin
166178
x86_64-linux
167179

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"
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)