Skip to content

Commit

Permalink
CI: Use Ruby 3.1+
Browse files Browse the repository at this point in the history
Centralize Ruby versions list.
  • Loading branch information
olleolleolle authored Jun 20, 2024
1 parent 51bc062 commit 1882b1a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ on:
branches: [ master ]

jobs:
test:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
min_version: 3.1
engine: cruby

test:
needs: ruby-versions
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version:
- 3.3
- 3.2
- 3.1
- "3.0"

ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}

steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
Expand Down

0 comments on commit 1882b1a

Please sign in to comment.