diff --git a/.github/workflows/ruby-core.yml b/.github/workflows/ruby-core.yml index 929246bb71..1a77443689 100644 --- a/.github/workflows/ruby-core.yml +++ b/.github/workflows/ruby-core.yml @@ -57,3 +57,16 @@ jobs: - name: Test RDoc run: make -j2 -s test-all TESTS="rdoc --no-retry" working-directory: ruby/ruby + - name: Generate Documentation with RDoc + run: make html + working-directory: ruby/ruby + # We need to clear the generated documentation to generate them again + # with the Prism parser. + - name: Clear Generated Documentation + run: rm -r .ext/html + working-directory: ruby/ruby + - name: Generate Documentation with RDoc (Prism parser) + run: make html + working-directory: ruby/ruby + env: + RDOC_USE_PRISM_PARSER: true