Skip to content

Commit

Permalink
Add Ruby 3.3 to CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Jun 17, 2024
1 parent c0a7cf5 commit c8a05c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2"]
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand Down
6 changes: 5 additions & 1 deletion test/test_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,14 @@ def test_no_strings_retained_report
# 3 times "0", 2 times for short interpolated strings, 3 times for long interpolated strings
total_allocated = 5 * (3 + 2 + 3 + 3)
unique = 20
else
elsif RUBY_VERSION < '3.3'
# 2 times for short interpolated strings, 3 times for long interpolated strings
total_allocated = 5 * (2 + 3 + 3)
unique = 15
else
# 2 times for short interpolated strings, 2 times for long interpolated strings
total_allocated = 5 * (2 + 2 + 2)
unique = 15
end

assert_equal(total_allocated, results.total_allocated, "#{total_allocated} strings should be allocated")
Expand Down

0 comments on commit c8a05c3

Please sign in to comment.