Skip to content

Commit b9675e1

Browse files
committed
Use quotes consistently for Ruby versions in docs
* To avoid issues from actions/runner#849
1 parent 57a3395 commit b9675e1

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os: [ ubuntu-18.04, ubuntu-20.04, macos-10.15, macos-11.0, windows-2019, windows-2022 ]
19-
ruby: [ 1.9, '2.0', 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, ruby-head, jruby, jruby-head, truffleruby, truffleruby-head, truffleruby+graalvm, truffleruby+graalvm-head ]
19+
ruby: [ '1.9', '2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', ruby-head, jruby, jruby-head, truffleruby, truffleruby-head, truffleruby+graalvm, truffleruby+graalvm-head ]
2020
include:
21-
- { os: ubuntu-22.04, ruby: 3.1.0 }
22-
- { os: ubuntu-22.04, ruby: 3.1 }
23-
- { os: ubuntu-22.04, ruby: 3.2.0-preview1 }
21+
- { os: ubuntu-22.04, ruby: '3.1.0' }
22+
- { os: ubuntu-22.04, ruby: '3.1' }
23+
- { os: ubuntu-22.04, ruby: '3.2.0-preview1' }
2424
- { os: ubuntu-22.04, ruby: ruby-head }
2525
- { os: windows-2019, ruby: mingw }
2626
- { os: windows-2019, ruby: mswin }
2727
- { os: windows-2022, ruby: mingw }
2828
- { os: windows-2022, ruby: mswin }
2929
- { os: windows-2022, ruby: ucrt }
3030
exclude:
31-
- { os: windows-2019, ruby: 1.9 }
31+
- { os: windows-2019, ruby: '1.9' }
3232
- { os: windows-2019, ruby: debug }
3333
- { os: windows-2019, ruby: truffleruby }
3434
- { os: windows-2019, ruby: truffleruby-head }
3535
- { os: windows-2019, ruby: truffleruby+graalvm }
3636
- { os: windows-2019, ruby: truffleruby+graalvm-head }
37-
- { os: windows-2022, ruby: 1.9 }
37+
- { os: windows-2022, ruby: '1.9' }
3838
- { os: windows-2022, ruby: debug }
3939
- { os: windows-2022, ruby: truffleruby }
4040
- { os: windows-2022, ruby: truffleruby-head }
@@ -124,7 +124,7 @@ jobs:
124124
- uses: actions/checkout@v2
125125
- uses: ./
126126
with:
127-
ruby-version: 2.6
127+
ruby-version: '2.6'
128128
rubygems: latest
129129
- run: ruby -e "exit(Gem.rubygems_version > Gem::Version.new('3.0.3'))"
130130

@@ -135,7 +135,7 @@ jobs:
135135
- uses: actions/checkout@v2
136136
- uses: ./
137137
with:
138-
ruby-version: 2.6
138+
ruby-version: '2.6'
139139
rubygems: 3.2.3
140140
- run: gem --version | grep -F "3.2.3"
141141

@@ -146,7 +146,7 @@ jobs:
146146
- uses: actions/checkout@v2
147147
- uses: ./
148148
with:
149-
ruby-version: 3.1.0
149+
ruby-version: '3.1.0'
150150
rubygems: 3.2.3
151151
- run: gem --version | grep -F "3.3.3"
152152

@@ -157,7 +157,7 @@ jobs:
157157
- uses: actions/checkout@v2
158158
- uses: ./
159159
with:
160-
ruby-version: 2.2
160+
ruby-version: '2.2'
161161
rubygems: 2.7.11
162162
- run: gem --version | grep -F "2.7.11"
163163
- run: bundle --version | grep -F "1.16.6"
@@ -169,7 +169,7 @@ jobs:
169169
- uses: actions/checkout@v2
170170
- uses: ./
171171
with:
172-
ruby-version: 2.2
172+
ruby-version: '2.2'
173173
bundler: 1.16.6
174174
- run: bundle --version | grep -F "1.16.6" # And not 1.17.x from ~> 1
175175

@@ -180,7 +180,7 @@ jobs:
180180
- uses: actions/checkout@v2
181181
- uses: ./
182182
with:
183-
ruby-version: 2.6
183+
ruby-version: '2.6'
184184
bundler: 2
185185
- run: bundle --version | grep -P "Bundler version 2\.\d+\.\d+"
186186

@@ -191,7 +191,7 @@ jobs:
191191
- uses: actions/checkout@v2
192192
- uses: ./
193193
with:
194-
ruby-version: 2.6
194+
ruby-version: '2.6'
195195
bundler: 2.2
196196
- run: bundle --version | grep -P "Bundler version 2\.2\.\d+"
197197

@@ -202,7 +202,7 @@ jobs:
202202
- uses: actions/checkout@v2
203203
- uses: ./
204204
with:
205-
ruby-version: 2.6
205+
ruby-version: '2.6'
206206
bundler: 2.2.3
207207
- run: bundle --version | grep -F "Bundler version 2.2.3"
208208

@@ -215,7 +215,7 @@ jobs:
215215
- uses: actions/checkout@v2
216216
- uses: ./
217217
with:
218-
ruby-version: 2.7
218+
ruby-version: '2.7'
219219
bundler: 1
220220
bundler-cache: true
221221
- run: bundle --version | grep -F "Bundler version 1."
@@ -233,7 +233,7 @@ jobs:
233233
- uses: actions/checkout@v2
234234
- uses: ./
235235
with:
236-
ruby-version: 2.6
236+
ruby-version: '2.6'
237237
bundler-cache: true
238238
- run: bundle exec rails --version
239239

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- uses: actions/checkout@v2
7070
- uses: ruby/setup-ruby@v1
7171
with:
72-
ruby-version: 2.6 # Not needed with a .ruby-version file
72+
ruby-version: '3.0' # Not needed with a .ruby-version file
7373
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
7474
- run: bundle exec rake
7575
```
@@ -88,7 +88,7 @@ jobs:
8888
matrix:
8989
os: [ubuntu-latest, macos-latest]
9090
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
91-
ruby: [2.6, 2.7, '3.0', 3.1, head, jruby, jruby-head, truffleruby, truffleruby-head]
91+
ruby: ['2.7', '3.0', '3.1', head, jruby, jruby-head, truffleruby, truffleruby-head]
9292
runs-on: ${{ matrix.os }}
9393
steps:
9494
- uses: actions/checkout@v2
@@ -117,7 +117,7 @@ jobs:
117117
- uses: actions/checkout@v2
118118
- uses: ruby/setup-ruby@v1
119119
with:
120-
ruby-version: 2.6
120+
ruby-version: '3.0'
121121
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
122122
- run: bundle exec rake
123123
```
@@ -129,8 +129,8 @@ and the [condition and expression syntax](https://help.github.com/en/actions/ref
129129
### Supported Version Syntax
130130

131131
* engine-version like `ruby-2.6.5` and `truffleruby-19.3.0`
132-
* short version like `2.6`, automatically using the latest release matching that version (`2.6.5`)
133-
* version only like `2.6.5`, assumes MRI for the engine
132+
* short version like `'2.6'`, automatically using the latest release matching that version (`2.6.10`)
133+
* version only like `'2.6.5'`, assumes MRI for the engine
134134
* engine only like `truffleruby`, uses the latest stable release of that implementation
135135
* `.ruby-version` reads from the project's `.ruby-version` file
136136
* `.tool-versions` reads from the project's `.tool-versions` file

0 commit comments

Comments
 (0)