Update GitHub Actions workflows #174
Workflow file for this run
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: ci | |
on: [pull_request] | |
permissions: | |
contents: read | |
jobs: | |
ci: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.4.2 | |
with: | |
path: guides | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.4.2 | |
with: | |
repository: rubygems/rubygems | |
path: rubygems | |
ref: 3.5 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc #v1.202.0 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
working-directory: guides | |
- name: Build jekyll | |
run: bundle exec jekyll build | |
working-directory: guides | |
- name: Generate command guide | |
run: RUBYOPT="--disable-gems -I../rubygems/lib" bundle exec rake command_guide && git diff --exit-code | |
working-directory: guides | |
- name: Lint generated markdown | |
run: bundle exec mdl --rules MD009,MD012 command-reference.md | |
working-directory: guides |