Handle BUNDLER_VERSION being set to an empty string #6612
Workflow file for this run
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-22.04 } | |
ruby: | |
- { name: ruby-3.0, value: 3.0.6 } | |
- { name: ruby-3.1, value: 3.1.4 } | |
- { name: ruby-3.2, value: 3.2.2 } | |
bundler: | |
- { name: 2, value: '' } | |
- { name: 3, value: 3.0.0 } | |
include: | |
- { os: { name: macOS, value: macos-12 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.0, value: 3.0.6 }, timeout: 90 } | |
- { os: { name: macOS, value: macos-12 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.1, value: 3.1.4 }, timeout: 90 } | |
- { os: { name: macOS, value: macos-12 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.2, value: 3.2.2 }, timeout: 90 } | |
- { os: { name: Windows, value: windows-2022 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.0, value: 3.0.6 }, timeout: 150 } | |
- { os: { name: Windows, value: windows-2022 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.1, value: 3.1.4 }, timeout: 150 } | |
- { os: { name: Windows, value: windows-2022 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.2, value: 3.2.2 }, timeout: 150 } | |
env: | |
RGV: .. | |
RUBYOPT: --disable-gems | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 | |
with: | |
ruby-version: ${{ matrix.ruby.value }} | |
bundler: none | |
- name: Install graphviz (Ubuntu) | |
run: sudo apt-get install graphviz -y | |
if: matrix.bundler.value == '' && matrix.os.name == 'Ubuntu' | |
- name: Install graphviz (macOS) | |
run: brew install graphviz | |
if: matrix.bundler.value == '' && matrix.os.name == 'macOS' | |
- name: Prepare dependencies | |
run: | | |
bin/rake spec:parallel_deps | |
- name: Replace version | |
run: BUNDLER_SPEC_SUB_VERSION=${{ matrix.bundler.value }} bin/rake override_version | |
if: matrix.bundler.value != '' | |
- name: Run Test | |
run: | | |
bin/parallel_rspec | |
working-directory: ./bundler | |
timeout-minutes: ${{ matrix.timeout || 60 }} |