Skip to content

Commit

Permalink
Run all tests with frozen string literals enabled
Browse files Browse the repository at this point in the history
To catch any accidental errors mutating frozen strings, enable them by
default in CI.

See https://ruby.social/@byroot/112177840865649404
  • Loading branch information
mudge committed Apr 1, 2024
1 parent 60ca676 commit 792c992
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: re2 Tests

concurrency:
group: "${{github.workflow}}-${{github.sha}}"
cancel-in-progress: true

on:
workflow_dispatch:
push:
branches:
- main
pull_request:

env:
RUBYOPT: "--enable-frozen-string-literal --debug-frozen-string-literal --debug"

jobs:
build-cruby-gem:
name: "Build CRuby gem"
Expand Down

0 comments on commit 792c992

Please sign in to comment.