apisix/.github/workflows/lint.yml
2021-05-07 08:55:17 +08:00

24 lines
605 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@v2.1.5
with:
node-version: '12.x'
- run: npm install -g markdownlint-cli@0.25.0
- run: markdownlint '**/*.md'
trailing-whitespace:
name: 🌌 Trailing whitespace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🧹 Check for trailing whitespace
run: "! git grep -EIn $'[ \t]+$' | grep -v 'received: '"