Skip to content

Commit

Permalink
Use latest Ruby version with GHA variable fallback
Browse files Browse the repository at this point in the history
No need to run against a version matrix here. Ruby 3.0 is no longer supported by ActiveSupport 7.2. This reduces maintenance burden. We'll use a GHA variable fallback so we can also update the version without having to make workflow file changes in the future.
  • Loading branch information
javierjulio committed Sep 3, 2024
1 parent 78c8a36 commit c14695c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@ on:
branches:
- master
pull_request:
branches:
- master

env:
RUBY_VERSION: ${{ vars.RUBY_VERSION || '3.3' }}

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '3.0', '3.1', '3.2' ]
name: Ruby ${{ matrix.ruby }}
name: Ruby ${{ env.RUBY_VERSION }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run Tests
run: bundle exec rake

0 comments on commit c14695c

Please sign in to comment.