Potential fix for bundle install
output sometimes getting interleaved
#9093
This file contains 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 ${{ matrix.bundler.name }} 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.1, value: 3.1.6 } | |
- { name: ruby-3.2, value: 3.2.6 } | |
- { name: ruby-3.3, value: 3.3.7 } | |
- { name: ruby-3.4, value: 3.4.1 } | |
bundler: | |
- { name: 2, value: '' } | |
- { name: 3, value: 3.0.0 } | |
include: | |
- { os: { name: macOS, value: macos-14 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.1, value: 3.1.6 }, timeout: 90 } | |
- { os: { name: macOS, value: macos-14 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.2, value: 3.2.6 }, timeout: 90 } | |
- { os: { name: macOS, value: macos-14 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.3, value: 3.3.7 }, timeout: 90 } | |
- { os: { name: macOS, value: macos-14 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.4, value: 3.4.1 }, timeout: 90 } | |
- { os: { name: Windows, value: windows-2022 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.1, value: 3.1.6 }, timeout: 150 } | |
- { os: { name: Windows, value: windows-2022 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.2, value: 3.2.6 }, timeout: 150 } | |
- { os: { name: Windows, value: windows-2022 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.3, value: 3.3.7 }, timeout: 150 } | |
- { os: { name: Windows, value: windows-2022 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.4, value: 3.4.1 }, timeout: 150 } | |
- { os: { name: Ubuntu, value: ubuntu-24.04 }, bundler: { name: 2, value: '' }, ruby: { name: jruby, value: jruby-9.4.10.0 } } | |
- { os: { name: Windows, value: windows-2022 }, bundler: { name: 2, value: '' }, ruby: { name: jruby, value: jruby-9.4.10.0 } } | |
env: | |
RGV: .. | |
RUBYOPT: --disable-gems | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@1287d2b408066abada82d5ad1c63652e758428d9 # v1.214.0 | |
with: | |
ruby-version: ${{ matrix.ruby.value }} | |
bundler: none | |
- name: Setup java | |
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 | |
with: | |
distribution: temurin | |
java-version: 19.0.2 | |
if: matrix.os.name == 'Windows' && matrix.ruby.name == 'jruby' | |
- name: Install graphviz (Ubuntu) | |
run: sudo apt-get install graphviz -y | |
if: matrix.bundler.value == '' && matrix.os.name == 'Ubuntu' | |
- name: Replace version | |
run: BUNDLER_SPEC_SUB_VERSION=${{ matrix.bundler.value }} bin/rake override_version | |
if: matrix.bundler.value != '' | |
- name: Prepare dependencies | |
run: | | |
bin/rake spec:parallel_deps | |
- name: Run Test (CRuby) | |
run: | | |
bin/parallel_rspec | |
working-directory: ./bundler | |
if: matrix.ruby.name != 'jruby' | |
- 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 }} |