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 8, 2021
1 parent 8a6c3b6 commit f42ce72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-rubygems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Install Dependencies
run: rake setup
- name: Run Test
run: rake test
run: RUBYOPT='--disable-gems -w -Ilib:test:bundler/lib' ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
if: "!startsWith(matrix.ruby.name, 'truffleruby') && !startsWith(matrix.ruby.name, 'jruby')"
- name: Run Test (JRuby)
run: JRUBY_OPTS=--debug rake test
Expand Down

0 comments on commit f42ce72

Please sign in to comment.