@@ -17,20 +17,12 @@ jobs:
1717 strategy :
1818 fail-fast : false
1919 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-12, macos-13, macos-14, macos-15 ]
2121 ruby : [
2222 ' 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,
2423 truffleruby, truffleruby-head,
2524 truffleruby+graalvm, truffleruby+graalvm-head
2625 ]
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 }
3426 exclude :
3527 # https://github.com/ruby/setup-ruby/issues/496
3628 - { os: ubuntu-22.04, ruby: '2.2' }
7567 - uses : ./
7668 with :
7769 ruby-version : ${{ matrix.ruby }}
78- bundler-cache : true
7970 - run : ruby -v
8071 - name : PATH
8172 shell : pwsh
@@ -107,11 +98,14 @@ jobs:
10798
10899 - name : Subprocess test
109100 run : ruby test_subprocess.rb
101+ - run : brew list | grep openssl
110102 - name : OpenSSL compiled version
111103 run : ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION'
112104 - name : OpenSSL loaded version
113105 run : ruby -ropenssl -e 'puts OpenSSL::OPENSSL_LIBRARY_VERSION'
114106 if : matrix.ruby != '1.9'
107+ - run : ruby -ropenssl -e 'puts $".grep(/openssl\.(so|bundle)/)'
108+ - run : otool -L $(ruby -ropenssl -e 'puts $".grep(/openssl\.(so|bundle)/)') | grep libssl
115109 - name : OpenSSL test
116110 run : ruby -ropen-uri -e 'puts URI.send(:open, %{https://rubygems.org/}) { |f| f.read(1024) }'
117111
@@ -171,203 +165,3 @@ jobs:
171165 - name : Windows JRuby
172166 if : startsWith(matrix.os, 'windows') && startsWith(matrix.ruby, 'jruby')
173167 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