diff --git a/.github/workflows/edge.yml b/.github/workflows/edge.yml index c73a44ad3..471152469 100644 --- a/.github/workflows/edge.yml +++ b/.github/workflows/edge.yml @@ -27,7 +27,7 @@ jobs: bundler-cache: true - name: Run tests - run: bundle exec rake spec + run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rspec" - name: Coveralls uses: coverallsapp/github-action@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14a663818..2740dd7df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -84,7 +84,7 @@ jobs: bundler-cache: true - name: Run Tests (${{ matrix.specs }}) - run: bundle exec rspec ${{ matrix.specs }} + run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rspec ${{ matrix.specs }}" - name: Coveralls uses: coverallsapp/github-action@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index e7ef011ac..04208237c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ * [#2549](https://github.com/ruby-grape/grape/pull/2549): Delegate cookies management to `Grape::Request` - [@ericproulx](https://github.com/ericproulx). * [#2554](https://github.com/ruby-grape/grape/pull/2554): Remove `Grape::Http::Headers` and `Grape::Util::Lazy::Object` - [@ericproulx](https://github.com/ericproulx). * [#2556](https://github.com/ruby-grape/grape/pull/2556): Remove unused `Grape::Request::DEFAULT_PARAMS_BUILDER` constant - [@eriklovmo](https://github.com/eriklovmo). +* [#2558](https://github.com/ruby-grape/grape/pull/2558): Add Ruby's option `enable_frozen_string_literal` in CI - [@ericproulx](https://github.com/ericproulx). * Your contribution here. #### Fixes