Skip to content
play

GitHub Action

Derive Ruby versions

0.1.0 Pre-release

Derive Ruby versions

play

Derive Ruby versions

Determine Ruby version testing matrix based on the gemspec's required_ruby_version field

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Derive Ruby versions

uses: ekohl/[email protected]

Learn more about this action in ekohl/ruby-version

Choose a version

Ruby version determination

Determine the Ruby versions for your testing matrix based on the gemspec.

Maintaining your CI is tedious and your gem can already specify the compatible Ruby versions using required_ruby_version. This action reads your gemspec and provides an output of compatible Ruby versions.

Supported Ruby versions

A static list of compatible versions is maintained. This is a subset of setup-ruby's supported versions.

  • 3.3
  • 3.2
  • 3.1
  • 3.0
  • 2.7
  • 2.6
  • 2.5
  • 2.4