Skip to content

Adopt Ruby Community Conduct Guideline for Code of Conduct #7174

Adopt Ruby Community Conduct Guideline for Code of Conduct

Adopt Ruby Community Conduct Guideline for Code of Conduct #7174

Workflow file for this run

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-15 }
- { name: Windows, value: windows-2025 }
ruby:
- { name: "3.2", value: 3.2.9 }
- { name: "3.3", value: 3.3.9 }
- { name: "3.4", value: 3.4.5 }
include:
- ruby: { name: jruby, value: jruby-10.0.2.0 }
os: { name: Ubuntu, value: ubuntu-24.04 }
- ruby: { name: truffleruby, value: truffleruby-24.2.1 }
os: { name: Ubuntu, value: ubuntu-24.04 }
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Setup ruby
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
- 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
all-pass:
name: All rubygems jobs pass
if: always()
needs:
- rubygems
runs-on: ubuntu-latest
steps:
- name: check dependent jobs
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}