Auto-hide navigation on link click (#1238) #1169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
ruby-versions: | |
uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
with: | |
# 2.7 breaks `test_parse_statements_nodoc_identifier_alias_method` | |
min_version: 3.0 | |
engine: cruby-truffleruby | |
test: | |
needs: ruby-versions | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
exclude: | |
- os: windows-latest | |
ruby: truffleruby | |
- os: windows-latest | |
ruby: truffleruby-head | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 # v3.3.0 | |
# libyaml-dev is needed for psych, see https://github.com/ruby/setup-ruby/issues/409 | |
- if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: sudo apt install libyaml-dev | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@master | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # 'bundle install' and cache | |
- name: Run test | |
run: bundle exec rake | |
env: | |
RUBYOPT: --enable-frozen_string_literal | |
- name: Run test with Prism parser | |
run: bundle exec rake | |
env: | |
RUBYOPT: --enable-frozen_string_literal | |
RDOC_USE_PRISM_PARSER: true | |
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }} | |
run: bundle exec rake rdoc | |
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }} | |
run: bundle exec rake install |