Skip to content

Commit 496fee0

Browse files
committed
Test with Ruby 4.0.0
1 parent 0135c85 commit 496fee0

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,29 +89,33 @@ jobs:
8989
- "3.2"
9090
- "3.3"
9191
- "3.4"
92+
bundler:
93+
- default
9294
rubyopt:
9395
- "--enable-frozen-string-literal --debug-frozen-string-literal"
9496
include:
97+
# Avoid Bundler 4 for now: https://github.com/sinatra/sinatra/issues/2135
98+
- { ruby: "4.0", bundler: 2.7.2, rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable }
9599
# Rack
96-
- { ruby: 3.4, rack: "~>3.0.0", puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable }
97-
- { ruby: 3.4, rack: "~>3.1.0", puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable }
98-
- { ruby: 3.4, rack: head, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable }
100+
- { ruby: 3.4, bundler: default, rack: "~>3.0.0", puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable }
101+
- { ruby: 3.4, bundler: default, rack: "~>3.1.0", puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable }
102+
- { ruby: 3.4, bundler: default, rack: head, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable }
99103
# Rack::Session
100-
- { ruby: 3.4, rack: stable, puma: stable, tilt: stable, rack_session: head, zeitwerk: stable }
104+
- { ruby: 3.4, bundler: default, rack: stable, puma: stable, tilt: stable, rack_session: head, zeitwerk: stable }
101105
# Puma
102-
- { ruby: 3.4, rack: stable, puma: head, tilt: stable, rack_session: stable, zeitwerk: stable }
106+
- { ruby: 3.4, bundler: default, rack: stable, puma: head, tilt: stable, rack_session: stable, zeitwerk: stable }
103107
# Tilt
104-
- { ruby: 3.4, rack: stable, puma: stable, tilt: head, rack_session: stable, zeitwerk: stable }
108+
- { ruby: 3.4, bundler: default, rack: stable, puma: stable, tilt: head, rack_session: stable, zeitwerk: stable }
105109
# Test Zeitwerk < 2.7.0 separately
106-
- { ruby: 3.4, rack: stable, puma: stable, tilt: head, rack_session: stable, zeitwerk: '<2.7.0' }
110+
- { ruby: 3.4, bundler: default, rack: stable, puma: stable, tilt: head, rack_session: stable, zeitwerk: '<2.7.0' }
107111
# JRuby, tests are notable flaky
108-
- { ruby: jruby, rubyopt: "", rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
112+
- { ruby: jruby, bundler: default, rubyopt: "", rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
109113
# Never fail our build due to problems with head rubies
110-
- { ruby: ruby-head, rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
111-
- { ruby: jruby-head, rubyopt: "", rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
112-
- { ruby: truffleruby-head, rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
114+
- { ruby: ruby-head, bundler: 2.7.2, rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
115+
- { ruby: jruby-head, bundler: default, rubyopt: "", rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
116+
- { ruby: truffleruby-head, bundler: default, rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
113117
# truffleruby 24.1 fails, see https://github.com/oracle/truffleruby/issues/3788
114-
- { ruby: truffleruby, rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
118+
- { ruby: truffleruby, bundler: default, rack: stable, puma: stable, tilt: stable, rack_session: stable, zeitwerk: stable, allow-failure: true }
115119

116120
env:
117121
rack: ${{ matrix.rack }}
@@ -141,6 +145,7 @@ jobs:
141145
id: setup-ruby
142146
with:
143147
ruby-version: ${{ matrix.ruby }}
148+
bundler: ${{ matrix.bundler }}
144149
bundler-cache: true
145150
# Update rubygems due to https://github.com/rubygems/rubygems/pull/6490 (3.0)
146151
# and https://github.com/sinatra/sinatra/issues/2051 (3.1)

0 commit comments

Comments
 (0)