diff --git a/.github/actions/test_gem/action.yml b/.github/actions/test_gem/action.yml index 401c30102..7b429a72a 100644 --- a/.github/actions/test_gem/action.yml +++ b/.github/actions/test_gem/action.yml @@ -82,6 +82,13 @@ runs: ruby-version: "${{ inputs.ruby }}" bundler: "latest" working-directory: "${{ steps.setup.outputs.gem_dir }}" + # Perms workaround. See https://github.com/actions/runner-images/issues/10215 + - name: Fix GEM_HOME permissions on GitHub Actions Runner + if: "${{ steps.setup.outputs.appraisals == 'true' }}" + shell: bash + run: | + # 🛠️😭 Fix GEM_HOME permissions 😭🛠️ + chmod -R o-w $(gem env home) - name: Install dependencies and generate appraisals if: "${{ steps.setup.outputs.appraisals == 'true' }}" shell: bash @@ -100,7 +107,7 @@ runs: echo "::group::🔎 Appraising ${i}" BUNDLE_GEMFILE=gemfiles/${i}.gemfile bundle install --quiet --jobs=3 --retry=4 && \ BUNDLE_GEMFILE=gemfiles/${i}.gemfile bundle show && \ - BUNDLE_GEMFILE=gemfiles/${i}.gemfile bundle exec rake test + BUNDLE_GEMFILE=gemfiles/${i}.gemfile bundle exec rake test || exit echo "::endgroup::" done else diff --git a/instrumentation/gruf/Appraisals b/instrumentation/gruf/Appraisals index c07e47bb9..1ad02a912 100644 --- a/instrumentation/gruf/Appraisals +++ b/instrumentation/gruf/Appraisals @@ -4,14 +4,22 @@ # # SPDX-License-Identifier: Apache-2.0 -appraise 'gruf-2.17' do - gem 'gruf', '~> 2.17.0' +if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.3') + appraise 'gruf-2.17' do + gem 'gruf', '~> 2.17.0' + end + + appraise 'gruf-2.18' do + gem 'gruf', '~> 2.18.0' + end end -appraise 'gruf-2.18' do - gem 'gruf', '~> 2.18.0' +if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.4') + appraise 'gruf-2.19' do + gem 'gruf', '~> 2.19.0' + end end -appraise 'gruf-2.19' do - gem 'gruf', '~> 2.19.0' +appraise 'gruf-latest' do + gem 'gruf' end