forked from fastify/fastify
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 830 Bytes
/
md-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Lint Docs
on:
push:
branches-ignore:
- main
paths:
- "**/*.md"
pull_request:
branches:
- main
paths:
- "**/*.md"
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
name: Lint Markdown
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
check-latest: true
- name: Install Linter
run: npm install --ignore-scripts
- name: Add Matcher
uses: xt0rted/markdownlint-problem-matcher@1a5fabfb577370cfdf5af944d418e4be3ea06f27
- name: Run Linter
run: ./node_modules/.bin/markdownlint-cli2