Skip to content

Commit

Permalink
Add TruffleRuby in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Dec 1, 2023
1 parent 3c7dd65 commit ab017e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.7, '3.0', 3.1, 3.2, ruby-head, jruby-9.4]
ruby: [2.7, '3.0', 3.1, 3.2, ruby-head, jruby-9.4, truffleruby]

env:
BUNDLE_WITHOUT: "benchmark"
Expand All @@ -27,3 +27,8 @@ jobs:

- name: Run tests
run: bundle exec rake
if: matrix.ruby != 'truffleruby'

- name: Run specs (truffleruby)
run: bundle exec rake spec
if: matrix.ruby == 'truffleruby'
7 changes: 6 additions & 1 deletion .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ruby-head, jruby-head]
ruby: [ruby-head, jruby-head, truffleruby-head]

env:
BUNDLE_WITHOUT: "benchmark"
Expand All @@ -28,3 +28,8 @@ jobs:

- name: Run tests
run: bundle exec rake
if: matrix.ruby != 'truffleruby-head'

- name: Run specs (truffleruby)
run: bundle exec rake spec
if: matrix.ruby == 'truffleruby-head'
1 change: 1 addition & 0 deletions spec/return_codes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
end

it "prints a message to STDERR" do
skip "fails on truffleruby" if RUBY_ENGINE == "truffleruby" && command.include?("testunit_bad.rb")
expect(@stderr).to match(/stopped.+SimpleCov.+previous.+error/i)
end
end
Expand Down

0 comments on commit ab017e2

Please sign in to comment.