Skip to content

Commit

Permalink
try yet another way to suppress experimental warnings in Ruby 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Feb 6, 2025
1 parent 9cc983c commit 37cd2c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ jobs:
- name: Set Rouge version
if: matrix.rouge-version
run: echo 'ROUGE_VERSION=${{ matrix.rouge-version }}' >> $GITHUB_ENV
- name: Suppress experimental warnings (Ruby 2.7)
if: matrix.ruby == '2.7'
run: echo 'RUBYOPT=-W:no-experimental' >> $GITHUB_ENV
- name: Install dependencies
run: bundle --jobs 3 --retry 3
- name: Switch to upstream dependencies
Expand All @@ -170,4 +167,4 @@ jobs:
bundle config --local clean true
bundle --jobs 3 --retry 3
- name: Run tests
run: bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') spec
run: bundle exec ruby -w -W:no-experimental $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') spec

0 comments on commit 37cd2c0

Please sign in to comment.