Skip to content

Commit d3108eb

Browse files
committed
Use bundle exec rdoc with local Gemfile for coverage check
Use BUNDLE_GEMFILE to ensure the coverage check runs against the locally checked out RDoc, not the system-installed version.
1 parent d40b337 commit d3108eb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ruby-core.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ jobs:
6767
bundle exec rake build:local_ruby
6868
working-directory: ruby/rdoc
6969
- name: Core docs coverage
70-
run: make XRUBY=ruby RDOC_DEPENDS= RBCONFIG=update-rbconfig rdoc-coverage
70+
run: >
71+
BUNDLE_GEMFILE=../rdoc/Gemfile bundle exec rdoc --quiet -C
72+
-x ^ext/json -x ^ext/openssl -x ^ext/psych
73+
-x ^lib/bundler -x ^lib/rubygems
74+
-x ^lib/did_you_mean -x ^lib/error_highlight -x ^lib/syntax_suggest
75+
.
7176
working-directory: ruby/ruby
7277
- name: Generate Documentation with RDoc
7378
run: make html

0 commit comments

Comments
 (0)