From 792c992dc04ef5598e8241b30515cf017bbf97f9 Mon Sep 17 00:00:00 2001 From: Paul Mucur Date: Mon, 1 Apr 2024 11:54:17 +0100 Subject: [PATCH] Run all tests with frozen string literals enabled To catch any accidental errors mutating frozen strings, enable them by default in CI. See https://ruby.social/@byroot/112177840865649404 --- .github/workflows/tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ff04826..64b71a3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,7 +1,9 @@ name: re2 Tests + concurrency: group: "${{github.workflow}}-${{github.sha}}" cancel-in-progress: true + on: workflow_dispatch: push: @@ -9,6 +11,9 @@ on: - main pull_request: +env: + RUBYOPT: "--enable-frozen-string-literal --debug-frozen-string-literal --debug" + jobs: build-cruby-gem: name: "Build CRuby gem"