From bd85ab881fbdff6304a83f002fe0ed8357a87f3c Mon Sep 17 00:00:00 2001 From: sue445 Date: Thu, 28 Dec 2023 19:31:21 +0900 Subject: [PATCH] Fixed bundler installing at ruby 2.7.8 ``` Installing Bundler Using latest Bundler for ruby-2.7.8 because the default Bundler gem is too old for that Ruby version Ruby 2.6-2.7 only works with Bundler 2.4 /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/gem install bundler -v ~> 2.4.0 ERROR: While executing gem ... (Zlib::BufError) buffer error Took 0.78 seconds ``` https://github.com/itamae-kitchen/itamae/actions/runs/7343647181/job/19997130475 --- .github/workflows/test.yml | 5 +++++ .github/workflows/test_main.yml | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a8d5a55..5f484bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,6 +32,10 @@ jobs: - "" - "--jit" - "--yjit" + include: + # FIXME: Workaround for bundle installing error + - ruby: "2.7" + bundler: "2.4.22" exclude: # --jit is available since MRI 2.6 - ruby: "2.3" @@ -58,6 +62,7 @@ jobs: with: ruby: ${{ matrix.ruby }} rubyopt: ${{ matrix.rubyopt }} + bundler: ${{ matrix.bundler }} secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/test_main.yml b/.github/workflows/test_main.yml index 2ea9818..730775c 100644 --- a/.github/workflows/test_main.yml +++ b/.github/workflows/test_main.yml @@ -10,6 +10,10 @@ on: required: false type: string default: "" + bundler: + required: false + type: string + default: default secrets: SLACK_WEBHOOK: required: true @@ -28,7 +32,7 @@ jobs: with: ruby-version: ${{ inputs.ruby }} bundler-cache: true - bundler: default + bundler: ${{ inputs.bundler != '' && inputs.bundler || 'default' }} - run: bundle update