From cc08579185af454494baa75796b14192f78681bf Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Wed, 10 Feb 2021 08:28:23 -0500 Subject: [PATCH] CI: Test with ruby 3.0 as the latest ruby version --- .github/workflows/liquid.yml | 5 ++--- test/integration/context_test.rb | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/liquid.yml b/.github/workflows/liquid.yml index c9101eb..7f7b84a 100644 --- a/.github/workflows/liquid.yml +++ b/.github/workflows/liquid.yml @@ -6,9 +6,8 @@ jobs: strategy: matrix: entry: - - { ruby: 2.5, allowed-failure: false } - - { ruby: 2.6, allowed-failure: false } - - { ruby: 2.7, allowed-failure: false } + - { ruby: 2.5, allowed-failure: false } # minimum supported + - { ruby: 3.0, allowed-failure: false } # latest - { ruby: ruby-head, allowed-failure: true } name: test (${{ matrix.entry.ruby }}) steps: diff --git a/test/integration/context_test.rb b/test/integration/context_test.rb index d0e72f8..a6ef3e5 100644 --- a/test/integration/context_test.rb +++ b/test/integration/context_test.rb @@ -461,6 +461,7 @@ class ContextTest < Minitest::Test end def test_interrupt_avoids_object_allocations + @context.interrupt? # ruby 3.0.0 allocates on the first call assert_no_object_allocations do @context.interrupt? end