Skip to content

Commit

Permalink
ci: migrate docs-lint to anycable action
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Nov 14, 2023
1 parent f2bf816 commit 2666957
Showing 1 changed file with 6 additions and 53 deletions.
59 changes: 6 additions & 53 deletions .github/workflows/docs-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,14 @@ on:
- master
paths:
- "**/*.md"
- ".github/workflows/docs-lint.yml"
pull_request:
paths:
- "**/*.md"
- ".github/workflows/docs-lint.yml"

jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Run Markdown linter
run: |
gem install mdl
mdl docs
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Lint Markdown files with RuboCop
run: |
gem install bundler
bundle install --gemfile gemfiles/rubocop.gemfile --jobs 4 --retry 3
bundle exec --gemfile gemfiles/rubocop.gemfile rubocop -c .rubocop-md.yml
forspell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Hunspell
run: |
sudo apt-get install hunspell
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Cache installed gems
uses: actions/cache@v1
with:
path: /home/runner/.rubies/ruby-2.7.0/lib/ruby/gems/2.7.0
key: gems-cache-${{ runner.os }}
- name: Install Forspell
run: gem install forspell
- name: Run Forspell
run: forspell docs/
lychee:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.5.1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: docs/* -v
docs-lint:
uses: anycable/github-actions/.github/workflows/docs-lint.yml@master
with:
lychee-args: docs/* -v README.md CHANGELOG.md

0 comments on commit 2666957

Please sign in to comment.