Skip to content

Adopt Ruby Community Conduct Guideline for Code of Conduct #5401

Adopt Ruby Community Conduct Guideline for Code of Conduct

Adopt Ruby Community Conduct Guideline for Code of Conduct #5401

name: system-rubygems-bundler
on:
pull_request:
paths:
- bundler/**
- .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@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: Prepare dependencies
run: |
bin/rake dev:deps
- name: Run Test
run: |
bin/parallel_rspec
working-directory: ./bundler
- 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
path: bundler/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 -I../../lib:lib:test test/rubygems/test_gem_requirement.rb
working-directory: ./bundler/tmp/rubygems
timeout-minutes: 60