mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 17:16:03 +02:00
37 lines
905 B
YAML
37 lines
905 B
YAML
name: Markdownlint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "**/*.md"
|
|
- ".markdownlint.json"
|
|
- ".github/workflows/markdownlint.yml"
|
|
- ".github/workflows/markdownlint-problem-matcher.json"
|
|
pull_request:
|
|
paths:
|
|
- "**/*.md"
|
|
- ".markdownlint.json"
|
|
- ".github/workflows/markdownlint.yml"
|
|
- ".github/workflows/markdownlint-problem-matcher.json"
|
|
|
|
jobs:
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
statuses: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 #@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d #@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"
|