apisix/.github/workflows/lint.yml
John Bampton 3bb3422852
feat(CI): add a GitHub Action to lint the Markdown (#3041)
- add a Markdownlint config file
- lint Markdownlint for MD039 - Spaces inside link text

https://www.npmjs.com/package/markdownlint-cli
2020-12-15 09:29:47 +08:00

17 lines
379 B
YAML

name: ❄️ Lint
on: [pull_request]
jobs:
markdownlint:
name: 🍇 Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🚀 Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm install -g markdownlint-cli@0.25.0
- run: markdownlint '**/*.md' --ignore node_modules