Skip to content

Make the RubyGems test suite green under RUBY_BOX=1 #7051

Make the RubyGems test suite green under RUBY_BOX=1

Make the RubyGems test suite green under RUBY_BOX=1 #7051

name: system-rubygems-bundler
on:
pull_request:
paths:
- bundler/**
- spec/**
- bin/rspec
- bin/parallel_rspec
- .github/workflows/system-rubygems-bundler.yml
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
defaults:
run:
shell: bash
jobs:
system_rubygems_bundler:
name: Bundler against system Rubygems (${{ matrix.ruby.name }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- { ruby: { name: ruby-3.2, value: 3.2.11 } }
- { ruby: { name: ruby-3.3, value: 3.3.11 } }
- { ruby: { name: ruby-3.4, value: 3.4.9 } }
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
- name: Prepare dependencies
run: |
bin/rake dev:deps
- name: Run Test
run: |
bin/parallel_rspec
env:
RGV: system
- name: Save system RubyGems version to ENV
run: |
RGV=$(ruby -e 'puts Gem::VERSION.split(".")[0..2].join(".")')
echo "RGV=v$RGV" >> $GITHUB_ENV
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: tmp/rubygems
ref: ${{ env.RGV }}
persist-credentials: false
- name: Run Rubygems Requirement tests against local bundler, to make sure bundler monkeypatches preserve the behaviour
run: |
ruby -Ilib:../../lib:test test/rubygems/test_gem_requirement.rb
working-directory: ./tmp/rubygems
timeout-minutes: 60