mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00

* Create markdownlint.yml * Create markdownlint-problem-matcher.json * Create .markdownlint.json * Update .markdownlint.json * fix violations * fixes * Remove "push" section As advised by @viktorhofer so it's quite clear it only runs in CI. Co-authored-by: Dan Moseley <danmose@microsoft.com>
26 lines
578 B
YAML
26 lines
578 B
YAML
name: Markdownlint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "**/*.md"
|
|
- ".markdownlint.json"
|
|
- ".github/workflows/markdownlint.yml"
|
|
- ".github/workflows/markdownlint-problem-matcher.json"
|
|
|
|
jobs:
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12.x
|
|
- name: Run Markdownlint
|
|
run: |
|
|
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json"
|
|
npm i -g markdownlint-cli
|
|
markdownlint "**/*.md"
|