Danny McCormick f5ab4efe19
Some checks failed
Main workflow / Run (ubuntu-latest) (push) Has been cancelled
Main workflow / Run (windows-latest) (push) Has been cancelled
V1 (#7)
2019-08-01 09:32:52 -04:00
2019-07-30 13:22:52 -04:00
2019-06-26 14:22:50 -04:00
2019-07-15 14:26:50 -04:00
2019-07-30 13:22:52 -04:00
2019-07-15 13:23:24 -04:00
2019-07-30 13:22:52 -04:00
2019-06-26 14:22:50 -04:00
2019-06-26 14:22:50 -04:00
2019-07-15 14:26:50 -04:00
2019-06-26 14:22:50 -04:00
2019-06-26 14:22:50 -04:00
2019-08-01 09:32:52 -04:00
2019-08-01 09:32:52 -04:00
2019-08-01 09:32:52 -04:00

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:

steps:
- uses: actions/checkout@master
- uses: actions/setup-ruby@v1
  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
    steps:
      - uses: actions/checkout@master
      - name: Setup ruby
        uses: actions/setup-ruby@v1
        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
Mirror of github.com/actions/setup-ruby
Readme 19 MiB
Languages
TypeScript 94%
JavaScript 6%