Support Rails 7.2 in test suite #170
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: Lint Docs | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "*.md" | |
- "*.yml" | |
- "**/*.md" | |
- "gemfiles/rubocop.gemfile" | |
pull_request: | |
paths: | |
- "*.md" | |
- "*.yml" | |
- "**/*.md" | |
- "gemfiles/rubocop.gemfile" | |
jobs: | |
markdownlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
- name: Run Markdown linter | |
run: | | |
gem install mdl | |
mdl *.md | |
rubocop: | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_GEMFILE: gemfiles/rubocop.gemfile | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
bundler-cache: true | |
- name: Lint Markdown files with RuboCop | |
run: | | |
bundle exec rubocop -c .rubocop-md.yml | |
forspell: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Hunspell | |
run: | | |
sudo apt-get install hunspell | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
- name: Cache installed gems | |
uses: actions/cache@v3 | |
with: | |
path: /home/runner/.rubies/ruby-3.1.0/lib/ruby/gems/3.1.0 | |
key: gems-cache-${{ runner.os }} | |
- name: Install Forspell | |
run: gem install forspell | |
- name: Run Forspell | |
run: forspell *.md | |
lychee: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/[email protected] | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
args: README.md CHANGELOG.md -v |