Skip to content

Commit

Permalink
Lock RubyGems version for Ruby < 3.0 in CI (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon authored Dec 17, 2023
1 parent ae74482 commit 5247637
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ jobs:
uses: actions/checkout@v4
- name: Update .ruby-version with matrix value
run: echo "${{ matrix.ruby }}" >| .ruby-version
- name: Set Rubygems version
id: rubygems
run: |
if [[ "${{ matrix.ruby }}" == "2.6" || "${{ matrix.ruby }}" == "2.7" || "${{ matrix.ruby }}" == "jruby-9.3" ]]; then
echo "version=3.3.27" >> $GITHUB_OUTPUT
else
echo "version=latest" >> $GITHUB_OUTPUT
fi
# Dependencies
- name: Set up generic Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -149,7 +157,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
rubygems: latest
rubygems: ${{ steps.rubygems.outputs.version }}
- name: Cache Appraisal gems
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 5247637

Please sign in to comment.