Skip to content

Commit

Permalink
Run spec on ruby-head for the effect of frozen string literal
Browse files Browse the repository at this point in the history
See also https://bugs.ruby-lang.org/issues/20205
Itamae has no frozen_string_literal magic comments.
In the future, Ruby will enable frozen string literal by default.
This commit checks its effect for itamae, by recurring GitHub actions.
  • Loading branch information
unasuke committed Apr 1, 2024
1 parent 151185c commit e5d9b4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
rubyopt: "--yjit"
- ruby: "3.3"
rubyopt: "--yjit"
include:
# ruby-debug is the same as ruby-head but with assertions enabled (-DRUBY_DEBUG=1)
- ruby: "debug"
rubyopt: "--jit" # See also https://bugs.ruby-lang.org/issues/20205 (enable frozen string literal as default)
- ruby: "debug"
rubyopt: "--jit --disable=frozen-string-literal"

uses: ./.github/workflows/test_main.yml
with:
Expand Down
1 change: 1 addition & 0 deletions itamae.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "hashie"
spec.add_runtime_dependency "ansi"
spec.add_runtime_dependency "schash", "~> 0.1.0"
spec.add_runtime_dependency "base64"

spec.add_development_dependency "bundler", ">= 1.3"
spec.add_development_dependency "rake"
Expand Down

0 comments on commit e5d9b4e

Please sign in to comment.