mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
CI: Test with ruby 3.0 as the latest ruby version
This commit is contained in:
5
.github/workflows/liquid.yml
vendored
5
.github/workflows/liquid.yml
vendored
@@ -6,9 +6,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
entry:
|
entry:
|
||||||
- { ruby: 2.5, allowed-failure: false }
|
- { ruby: 2.5, allowed-failure: false } # minimum supported
|
||||||
- { ruby: 2.6, allowed-failure: false }
|
- { ruby: 3.0, allowed-failure: false } # latest
|
||||||
- { ruby: 2.7, allowed-failure: false }
|
|
||||||
- { ruby: ruby-head, allowed-failure: true }
|
- { ruby: ruby-head, allowed-failure: true }
|
||||||
name: test (${{ matrix.entry.ruby }})
|
name: test (${{ matrix.entry.ruby }})
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -461,6 +461,7 @@ class ContextTest < Minitest::Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_interrupt_avoids_object_allocations
|
def test_interrupt_avoids_object_allocations
|
||||||
|
@context.interrupt? # ruby 3.0.0 allocates on the first call
|
||||||
assert_no_object_allocations do
|
assert_no_object_allocations do
|
||||||
@context.interrupt?
|
@context.interrupt?
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user