Skip to content

Commit

Permalink
Run tests with --disable-gems.
Browse files Browse the repository at this point in the history
This makes the test suite execute with `--disable-gems` option. This should
help to reduce the initial footprint of loaded libraries and reduce the risk
of inadvertently testing system RubyGems instead of upstream version.
  • Loading branch information
voxik committed Mar 10, 2021
1 parent 8a6c3b6 commit 182b3e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ubuntu-rubygems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
- name: Run Test
run: rake test
if: "!startsWith(matrix.ruby.name, 'truffleruby') && !startsWith(matrix.ruby.name, 'jruby')"
- name: Run Test (--disable-gems)
env:
RUBYOPT: --disable-gems
run: rake test
if: "!startsWith(matrix.ruby.name, 'truffleruby') && !startsWith(matrix.ruby.name, 'jruby')"
- name: Run Test (JRuby)
run: JRUBY_OPTS=--debug rake test
if: startsWith(matrix.ruby.name, 'jruby')
Expand Down

0 comments on commit 182b3e2

Please sign in to comment.