9cf364ddc38316238c414eb7031cb745d8963b68
setup-ruby
This action sets up a ruby environment for use in actions by:
- optionally installing a version of ruby and adding to PATH. Note that this action only uses versions of Ruby already installed in the cache. The action will fail if no matching versions are found.
- registering problem matchers for error output
Usage
See action.yml
Basic:
actions:
- uses: actions/checkout@master
- uses: actions/setup-ruby@master
with:
version: 2.x // Version range or exact version of a Ruby version to use, using semvers version range syntax.
- run: ruby hello.rb
Matrix Testing:
jobs:
build:
strategy:
matrix:
ruby: [ 2.x, 3.x ]
name: Ruby ${{ matrix.ruby }} sample
actions:
- uses: actions/checkout@master
- name: Setup ruby
uses: actions/setup-ruby@master
with:
version: ${{ matrix.ruby }}
architecture: x64
- run: ruby hello.rb
License
The scripts and documentation in this project are released under the MIT License
Contributions
Contributions are welcome! See Contributor's Guide
Description
Languages
TypeScript
94%
JavaScript
6%