android-security-awesome/.github/workflows/lint-markdown.yaml
dependabot[bot] 64d31efe60
Bump actions/checkout from 3 to 4 (#199)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-11 15:22:26 -08:00

45 lines
1.1 KiB
YAML

---
# Run this locally with act - https://github.com/nektos/act
# act -j lintMarkdown
name: Lint Markdown
on: # yamllint disable-line rule:truthy
push:
branches: [master, main]
paths:
- '**.md'
- '.github/workflows/lint-markdown.yaml'
pull_request:
branches: [master, main]
paths:
- '**.md'
- '.github/workflows/lint-markdown.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lintMarkdown:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
# See https://github.com/ruby/setup-ruby#versioning
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Install dependencies
run: gem install mdl
- name: Run tests
# Rule list: https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md
# Don't check for line length (MD013)
# Don't care about list ordering (MD029)
run: mdl --git-recurse --rules ~MD013,~MD029 .