Skip to content

Commit

Permalink
Github Actions: Adds Ruby 3.4
Browse files Browse the repository at this point in the history
- Also adds `bundler: latest`, `rubygems: latest` to avoid having
  to manually update for Ruby 2.6
  • Loading branch information
davidwessman authored and glebm committed Feb 9, 2025
1 parent 948ac9c commit ea698da
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
with:
ruby-version: "2.6"
bundler-cache: true
bundler: latest
rubygems: latest

- name: Set-up RuboCop Problem Matcher
uses: r7kamura/rubocop-problem-matchers-action@v1
Expand All @@ -26,8 +28,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "jruby"]
ruby-version: ["3.4", "3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "jruby"]
fail-fast: false

env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
GOOGLE_TRANSLATE_API_KEY: ${{ secrets.GOOGLE_TRANSLATE_API_KEY }}
Expand All @@ -38,12 +41,12 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
bundler: latest
rubygems: latest
- name: "Determine whether to upload coverage"
if: ${{ env.CC_TEST_REPORTER_ID && startsWith(matrix.ruby-version, '3.0') && github.ref == 'refs/heads/main' }}
if: ${{ env.CC_TEST_REPORTER_ID && startsWith(matrix.ruby-version, '3.4') && github.ref == 'refs/heads/main' }}
run: echo UPLOAD_COVERAGE=1 >> $GITHUB_ENV
- name: Ruby 2.6 gem update
if: ${{ startsWith(matrix.ruby-version, '2.6') }}
run: gem update --system 3.2.3
- name: Install dependencies
run: bundle install
- name: Run tests
Expand Down

0 comments on commit ea698da

Please sign in to comment.