Skip to content

Fix bundle outdated --groups to actually group output #6659

Fix bundle outdated --groups to actually group output

Fix bundle outdated --groups to actually group output #6659

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.0 } }
- { ruby: { name: ruby-3.3, value: 3.3.0 } }
- { ruby: { name: ruby-3.4, value: 3.4.1 } }
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Setup ruby
uses: ruby/setup-ruby@0dafeac902942906541bc140009cdbf32665b601 # v1.315.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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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