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 Jan 11, 2024
1 parent 862c937 commit 58c09e0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- '3.2'
- '3.3'
- jruby-9.4
- truffleruby

steps:
- uses: actions/checkout@v4
Expand All @@ -28,5 +29,10 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

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

- name: Run specs (truffleruby)
run: bundle exec rake spec
if: matrix.ruby-version == 'truffleruby'
10 changes: 8 additions & 2 deletions .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
ruby-version:
- ruby-head
- jruby-head
- truffleruby-head

steps:
- uses: actions/checkout@v4
Expand All @@ -27,6 +28,11 @@ jobs:
bundler-cache: true
continue-on-error: ${{ (matrix.ruby-version == 'ruby-head') || (matrix.ruby-version == 'jruby-head') }}

- run: |
bundle exec rake
- name: Run tests
run: bundle exec rake
if: matrix.ruby-version != 'truffleruby-head'
continue-on-error: ${{ (matrix.ruby-version == 'ruby-head') || (matrix.ruby-version == 'jruby-head') }}

- name: Run specs (truffleruby)
run: bundle exec rake spec
if: matrix.ruby-version == '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 58c09e0

Please sign in to comment.