Skip to content

Add TruffleRuby in CI #533

Add TruffleRuby in CI

Add TruffleRuby in CI #533

Workflow file for this run

name: stable
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.7, '3.0', 3.1, 3.2, ruby-head, jruby-9.4, truffleruby]
env:
BUNDLE_WITHOUT: "benchmark"
JRUBY_OPTS: "--debug"
steps:
- uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler-cache: true # 'bundle install' and cache
- name: Run tests
run: bundle exec rake
if: matrix.ruby != 'truffleruby'
- name: Run specs (truffleruby)
run: bundle exec rake spec
if: matrix.ruby == 'truffleruby'