Start testing with Ruby 3.4 on every PR #5066
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rubygems | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ci-${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
rubygems: | |
name: Rubygems on ${{ matrix.os.name }} (${{ matrix.ruby.name }}) | |
runs-on: ${{ matrix.os.value }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- { name: Ubuntu, value: ubuntu-24.04 } | |
- { name: macOS, value: macos-14 } | |
- { name: Windows, value: windows-2022 } | |
ruby: | |
- { name: "3.1", value: 3.1.6 } | |
- { name: "3.2", value: 3.2.6 } | |
- { name: "3.3", value: 3.3.6 } | |
include: | |
- ruby: { name: jruby, value: jruby-9.4.9.0 } | |
os: { name: Ubuntu, value: ubuntu-24.04 } | |
- ruby: { name: truffleruby, value: truffleruby-24.0.1 } | |
os: { name: Ubuntu, value: ubuntu-24.04 } | |
- ruby: { name: "3.4", value: 3.4.0-preview2 } | |
os: { name: Ubuntu, value: ubuntu-24.04 } | |
- ruby: { name: "3.4", value: 3.4.0-preview2 } | |
os: { name: macOS, value: macos-14 } | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0 | |
with: | |
ruby-version: ${{ matrix.ruby.value }} | |
bundler: none | |
- name: Update RBS # https://github.com/ruby/rbs/pull/1612 | |
run: ruby -e 'begin; require "rbs"; rescue LoadError; exit; end; exec(*%w{gem install --version 3.4.0 rbs}) if Gem::Requirement.new([">= 1.6", "< 3.1.1"]).satisfied_by?(Gem::Version.new(RBS::VERSION))' | |
- name: Install Dependencies | |
run: bin/rake setup | |
- name: Run Test | |
run: bin/rake test | |
if: matrix.ruby.name != 'truffleruby' && matrix.ruby.name != 'jruby' | |
- name: Run Test isolatedly | |
run: bin/rake test:isolated | |
if: matrix.ruby.name == '3.4' && matrix.os.name != 'Windows' | |
- name: Run Test (JRuby) | |
run: JRUBY_OPTS=--debug bin/rake test | |
if: startsWith(matrix.ruby.name, 'jruby') | |
- name: Run Test (Truffleruby) | |
run: TRUFFLERUBYOPT="--experimental-options --testing-rubygems" bin/rake test | |
if: matrix.ruby.name == 'truffleruby' | |
timeout-minutes: 60 |