Skip to content

Commit 0774a65

Browse files
committed
.github: Add markdown linter
Signed-off-by: Joe Stringer <[email protected]>
1 parent f37a650 commit 0774a65

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
pull_request:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: DavidAnson/markdownlint-cli2-action@v17
13+
with:
14+
globs: |
15+
**/*.md
16+
!vendor/**/*.md

.markdownlint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
default: true
2+
3+
MD002: false # First header should be a h1 header
4+
MD013: false # Line length
5+
MD041: false # First line in file should be a top level header

0 commit comments

Comments
 (0)