Merge pull request #9216 from ruby/cherry_pick_changelogs #11311
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: bundler | |
| 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 | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| bundler: | |
| name: Bundler on ${{ matrix.os.name }} (${{ matrix.ruby.name }}) | |
| runs-on: ${{ matrix.os.value }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - { name: Ubuntu, value: ubuntu-24.04 } | |
| ruby: | |
| - { name: ruby-3.2, value: 3.2.9 } | |
| - { name: ruby-3.3, value: 3.3.9 } | |
| - { name: ruby-3.4, value: 3.4.5 } | |
| include: | |
| - { os: { name: macOS, value: macos-15 }, ruby: { name: ruby-3.2, value: 3.2.9 }, timeout: 90 } | |
| - { os: { name: macOS, value: macos-15 }, ruby: { name: ruby-3.3, value: 3.3.9 }, timeout: 90 } | |
| - { os: { name: macOS, value: macos-15 }, ruby: { name: ruby-3.4, value: 3.4.5 }, timeout: 90 } | |
| # Ruby 3.2 is about 20 minutes slower than 3.3/3.4, so it will be excluded from testing. | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: ruby-3.3, value: 3.3.9 }, timeout: 150, group: a } | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: ruby-3.3, value: 3.3.9 }, timeout: 150, group: b } | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: ruby-3.3, value: 3.3.9 }, timeout: 150, group: c } | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: ruby-3.3, value: 3.3.9 }, timeout: 150, group: d } | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: ruby-3.4, value: 3.4.5 }, timeout: 150, group: a } | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: ruby-3.4, value: 3.4.5 }, timeout: 150, group: b } | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: ruby-3.4, value: 3.4.5 }, timeout: 150, group: c } | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: ruby-3.4, value: 3.4.5 }, timeout: 150, group: d } | |
| - { os: { name: Ubuntu, value: ubuntu-24.04 }, ruby: { name: jruby, value: jruby-10.0.2.0 } } | |
| - { os: { name: Windows, value: windows-2025 }, ruby: { name: jruby, value: jruby-10.0.2.0 } } | |
| env: | |
| RGV: .. | |
| RUBYOPT: --disable-gems | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Setup ruby | |
| uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby.value }} | |
| bundler: none | |
| - name: Setup java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: temurin | |
| java-version: 21.0.7 | |
| if: matrix.ruby.name == 'jruby' | |
| - name: Prepare dependencies | |
| run: | | |
| bin/rake dev:deps | |
| - name: Run Test (CRuby) | |
| run: | | |
| bin/parallel_rspec | |
| working-directory: ./bundler | |
| if: matrix.ruby.name != 'jruby' && matrix.os.name != 'Windows' | |
| - name: Run Test (CRuby on Windows - Group ${{ matrix.group }}) | |
| run: | | |
| bin/parallel_rspec --tag windows_${{ matrix.group }} | |
| working-directory: ./bundler | |
| if: matrix.ruby.name != 'jruby' && matrix.os.name == 'Windows' | |
| - name: Run Test (JRuby) | |
| run: | | |
| bin/parallel_rspec --tag jruby_only --tag jruby | |
| working-directory: ./bundler | |
| if: matrix.ruby.name == 'jruby' && matrix.os.name == 'Ubuntu' | |
| - name: Run a warbler project | |
| run: | | |
| bin/rake bundler:install:local | |
| cd bundler/spec/realworld/fixtures/warbler | |
| bundle install | |
| bundle exec warble | |
| java -jar warbler.jar | |
| if: matrix.ruby.name == 'jruby' && matrix.os.name == 'Ubuntu' | |
| timeout-minutes: ${{ matrix.timeout || 60 }} | |
| all-pass: | |
| name: All bundler jobs pass | |
| if: always() | |
| needs: | |
| - bundler | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: check dependent jobs | |
| uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |