Skip to content

enable_frozen_string_literal in CI #2558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ericproulx
Copy link
Contributor

@ericproulx ericproulx commented Apr 12, 2025

This PR will enable frozen_string_literal at Ruby's level when running CI. It's already done locally through the our Docker setup but I thought it would be great to also have it in the CI.

Inspired from this gist

@ericproulx ericproulx force-pushed the enable_frozen_string_literal_ci branch 2 times, most recently from 449d02b to 8cea3dc Compare April 12, 2025 13:16
@ericproulx ericproulx force-pushed the enable_frozen_string_literal_ci branch from 8cea3dc to 5d079f4 Compare April 12, 2025 13:18
@ericproulx ericproulx requested a review from dblock April 13, 2025 07:41
@ericproulx ericproulx requested a review from Copilot May 1, 2025 12:40
@ericproulx ericproulx marked this pull request as ready for review May 1, 2025 12:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables Ruby's frozen string literal flag in CI to align the CI environment with the local Docker setup.

  • Updates CHANGELOG.md to document the new frozen_string_literal setting.
  • Adjusts the CI workflows in test.yml and edge.yml to include RUBYOPT flags for enabling frozen_string_literal.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
CHANGELOG.md Added a changelog entry to document the new CI configuration.
.github/workflows/test.yml Updated the test command to enable frozen string literals using RUBYOPT.
.github/workflows/edge.yml Updated the edge workflow to enable frozen string literals in the test command.

@dblock dblock merged commit 485b90d into ruby-grape:master May 3, 2025
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants