Merge pull request #9227 from ruby/dependabot/github_actions/actions/… #5763
This file contains hidden or 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: 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Setup ruby | |
| uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| 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 |