@@ -17,20 +17,11 @@ jobs:
17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
- os : [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-12, macos-13, macos-14, macos-15, windows-2019, windows-2022 ]
20
+ os : [ macos-14 ]
21
21
ruby : [
22
- ' 1.9' , '2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', ruby-head,
23
- jruby, jruby-head,
24
22
truffleruby, truffleruby-head,
25
23
truffleruby+graalvm, truffleruby+graalvm-head
26
24
]
27
- include :
28
- - { os: windows-2019, ruby: mingw }
29
- - { os: windows-2019, ruby: mswin }
30
- - { os: windows-2022, ruby: mingw }
31
- - { os: windows-2022, ruby: mswin }
32
- - { os: windows-2022, ruby: ucrt }
33
- - { os: ubuntu-24.04, ruby: asan }
34
25
exclude :
35
26
# https://github.com/ruby/setup-ruby/issues/496
36
27
- { os: ubuntu-22.04, ruby: '2.2' }
75
66
- uses : ./
76
67
with :
77
68
ruby-version : ${{ matrix.ruby }}
78
- bundler-cache : true
69
+ # bundler-cache: true
79
70
- run : ruby -v
80
71
- name : PATH
81
72
shell : pwsh
107
98
108
99
- name : Subprocess test
109
100
run : ruby test_subprocess.rb
101
+ - run : brew list
110
102
- name : OpenSSL compiled version
111
103
run : ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION'
112
104
- name : OpenSSL loaded version
@@ -171,203 +163,3 @@ jobs:
171
163
- name : Windows JRuby
172
164
if : startsWith(matrix.os, 'windows') && startsWith(matrix.ruby, 'jruby')
173
165
run : gem install sassc
174
-
175
- testNoGemfile :
176
- name : " Test with no Gemfile"
177
- runs-on : ubuntu-latest
178
- steps :
179
- - uses : actions/checkout@v4
180
- - run : rm Gemfile
181
- - uses : ./
182
- with :
183
- ruby-version : ' 2.6'
184
- - run : ruby -v
185
-
186
- testLatestRubygemsVersion :
187
- name : " Test rubygems: latest on ${{ matrix.ruby }}"
188
- runs-on : ubuntu-latest
189
- strategy :
190
- fail-fast : false
191
- matrix :
192
- include :
193
- - { ruby: '3.2', expected_rubygems_version: '3.5.3' }
194
- - { ruby: '3.0', expected_rubygems_version: '3.5.3' }
195
- - { ruby: '2.7', expected_rubygems_version: '3.4.22' }
196
- - { ruby: '2.6', expected_rubygems_version: '3.4.22' }
197
- - { ruby: '2.5', expected_rubygems_version: '3.3.27' }
198
- - { ruby: '2.3', expected_rubygems_version: '3.3.27' }
199
- - { ruby: '2.0', expected_rubygems_version: '2.7.11' }
200
- steps :
201
- - uses : actions/checkout@v4
202
- - uses : ./
203
- with :
204
- ruby-version : ${{ matrix.ruby }}
205
- rubygems : latest
206
- - run : ruby -e 'puts Gem::VERSION; exit(Gem.rubygems_version >= Gem::Version.new("${{ matrix.expected_rubygems_version }}"))'
207
-
208
- testFixedRubygemsVersionUpgrades :
209
- name : " Test rubygems: version upgrades RubyGems to that version if the default is older"
210
- runs-on : ubuntu-latest
211
- steps :
212
- - uses : actions/checkout@v4
213
- - uses : ./
214
- with :
215
- ruby-version : ' 2.6'
216
- rubygems : 3.2.3
217
- - run : gem --version | grep -F "3.2.3"
218
-
219
- testFixedRubygemsVersionNoop :
220
- name : " Test rubygems: version noops if the default is newer"
221
- runs-on : ubuntu-latest
222
- steps :
223
- - uses : actions/checkout@v4
224
- - uses : ./
225
- with :
226
- ruby-version : ' 3.1.0'
227
- rubygems : 3.2.3
228
- - run : gem --version | grep -F "3.3.3"
229
-
230
- testUseBundlerFromRubyGemsUpdate :
231
- name : " Test rubygems: version uses the Bundler installed by the rubygems update"
232
- runs-on : ubuntu-latest
233
- steps :
234
- - uses : actions/checkout@v4
235
- - uses : ./
236
- with :
237
- ruby-version : ' 3.1.0'
238
- rubygems : 3.4.0
239
- - run : gem --version | grep -F "3.4.0"
240
- - run : bundle --version | grep -F "2.4.0"
241
-
242
- testFixedBundlerVersionForOldRuby :
243
- name : " Test bundler: 1.x for old Ruby"
244
- runs-on : ubuntu-20.04
245
- steps :
246
- - uses : actions/checkout@v4
247
- - uses : ./
248
- with :
249
- ruby-version : ' 2.2'
250
- bundler : 1.16.6
251
- - run : bundle --version | grep -F "1.16.6" # And not 1.17.x from ~> 1
252
-
253
- testMajorBundlerVersion :
254
- name : " Test with a major Bundler version"
255
- runs-on : ubuntu-latest
256
- steps :
257
- - uses : actions/checkout@v4
258
- - uses : ./
259
- with :
260
- ruby-version : ' 2.6'
261
- bundler : 2
262
- - run : bundle --version | grep -P "Bundler version 2\.\d+\.\d+"
263
-
264
- testMinorBundlerVersion :
265
- name : " Test with a minor Bundler version"
266
- runs-on : ubuntu-latest
267
- steps :
268
- - uses : actions/checkout@v4
269
- - uses : ./
270
- with :
271
- ruby-version : ' 2.6'
272
- bundler : 2.2
273
- - run : bundle --version | grep -P "Bundler version 2\.2\.\d+"
274
-
275
- testExactBundlerVersion :
276
- name : " Test with an exact Bundler version"
277
- runs-on : ubuntu-latest
278
- steps :
279
- - uses : actions/checkout@v4
280
- - uses : ./
281
- with :
282
- ruby-version : ' 2.6'
283
- bundler : 2.2.3
284
- - run : bundle --version | grep -F "Bundler version 2.2.3"
285
-
286
- testBundlerPre :
287
- name : " Test with a Bundler pre/rc version"
288
- runs-on : ubuntu-latest
289
- steps :
290
- - uses : actions/checkout@v4
291
- - uses : ./
292
- with :
293
- ruby-version : ' 2.6'
294
- bundler : 2.2.0.rc.2
295
- - run : bundle --version | grep -F "Bundler version 2.2.0.rc.2"
296
-
297
- testBundlerDev :
298
- name : " Test BUNDLED WITH Bundler dev"
299
- runs-on : ubuntu-latest
300
- env :
301
- BUNDLE_GEMFILE : ${{ github.workspace }}/gemfiles/bundler-dev.gemfile
302
- steps :
303
- - uses : actions/checkout@v4
304
- - uses : ./
305
- with :
306
- ruby-version : ruby-head
307
- bundler-cache : true
308
-
309
- testDependencyOnBundler1 :
310
- name : " Test gemfile depending on Bundler 1"
311
- runs-on : ubuntu-latest
312
- env :
313
- BUNDLE_GEMFILE : ${{ github.workspace }}/gemfiles/bundler1.gemfile
314
- steps :
315
- - uses : actions/checkout@v4
316
- - uses : ./
317
- with :
318
- ruby-version : ' 2.7'
319
- bundler : 1
320
- bundler-cache : true
321
- - run : bundle --version | grep -F "Bundler version 1."
322
-
323
- testGemfileMatrix :
324
- strategy :
325
- fail-fast : false
326
- matrix :
327
- gemfile : [ rails5, rails6 ]
328
- name : " Test with ${{ matrix.gemfile }} gemfile"
329
- runs-on : ubuntu-latest
330
- env :
331
- BUNDLE_GEMFILE : ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
332
- steps :
333
- - uses : actions/checkout@v4
334
- - uses : ./
335
- with :
336
- ruby-version : ' 2.6'
337
- bundler-cache : true
338
- - run : bundle exec rails --version
339
-
340
- testTruffleRubyNokogiri :
341
- name : " Test installing a Gemfile with nokogiri on TruffleRuby"
342
- runs-on : ubuntu-latest
343
- env :
344
- BUNDLE_GEMFILE : ${{ github.workspace }}/gemfiles/nokogiri.gemfile
345
- steps :
346
- - uses : actions/checkout@v4
347
- - uses : ./
348
- with :
349
- ruby-version : truffleruby-head
350
- bundler-cache : true
351
- - run : bundle list | grep nokogiri
352
-
353
- testWindowsToolchain :
354
- name : " Test windows-toolchain: none"
355
- runs-on : windows-latest
356
- steps :
357
- - uses : actions/checkout@v4
358
- - uses : ./
359
- with :
360
- ruby-version : ' 2.7'
361
- windows-toolchain : none
362
- bundler : none
363
- - name : C:/msys64/mingw64/bin/gcc.exe not installed
364
- run : ruby -e "abort if File.exist?('C:/msys64/mingw64/bin/gcc.exe')"
365
-
366
- lint :
367
- runs-on : ubuntu-20.04
368
- steps :
369
- - uses : actions/checkout@v4
370
- - run : yarn install
371
- - run : yarn run package
372
- - name : Check generated files are up to date
373
- run : git diff --exit-code
0 commit comments