README.md - add 2.7, misc
This commit is contained in:
14
README.md
14
README.md
@@ -6,9 +6,13 @@
|
|||||||
<a href="https://github.com/actions/setup-ruby/actions"><img alt="versions status" src="https://github.com/actions/setup-ruby/workflows/ruby-versions/badge.svg"></a>
|
<a href="https://github.com/actions/setup-ruby/actions"><img alt="versions status" src="https://github.com/actions/setup-ruby/workflows/ruby-versions/badge.svg"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
This action sets up a ruby environment for versions which are installed on the [Actions Virtual Environments](https://github.com/actions/virtual-environments). Because virtual environments are updated, a workflow should only be bound to a minor versions.
|
This action sets up a ruby environment for versions which are installed on the [Actions Virtual Environments](https://github.com/actions/virtual-environments).
|
||||||
|
|
||||||
> Only supports `2.4.x`, `2.5.x`, and `2.6.x`.
|
Virtual environments contain only one Ruby version within a 'major.minor' release, and are updated with new releases. Hence, a workflow should only be bound to minor versions.
|
||||||
|
|
||||||
|
Note that a `ruby-version:` of `2.6` or `2.6.x` are equivalent.
|
||||||
|
|
||||||
|
> Supports `2.4`, `2.5`, `2.6`, and `2.7`.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
@@ -20,7 +24,7 @@ steps:
|
|||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- uses: actions/setup-ruby@v1
|
- uses: actions/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: '2.6.x' # Version range or exact version of a Ruby version to use, using semvers version range syntax.
|
ruby-version: '2.6' # Version range or exact version of a Ruby version to use, using semvers version range syntax.
|
||||||
- run: ruby hello.rb
|
- run: ruby hello.rb
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -31,7 +35,7 @@ jobs:
|
|||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
ruby: [ '2.5.x', '2.6.x' ]
|
ruby: [ '2.5', '2.6' ]
|
||||||
name: Ruby ${{ matrix.ruby }} sample
|
name: Ruby ${{ matrix.ruby }} sample
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
@@ -67,7 +71,7 @@ jobs:
|
|||||||
- name: Set up Ruby 2.6
|
- name: Set up Ruby 2.6
|
||||||
uses: actions/setup-ruby@v1
|
uses: actions/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.6.x
|
ruby-version: 2.6
|
||||||
- name: Build and test with Rake
|
- name: Build and test with Rake
|
||||||
env:
|
env:
|
||||||
PGHOST: 127.0.0.1
|
PGHOST: 127.0.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user