Skip to content

Commit 65407d3

Browse files
committed
ci(lint): add linting workflow for markdown files
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent 8279d8a commit 65407d3

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v5
17+
18+
- name: Markdown lint
19+
uses: docker://avtodev/markdown-lint:v1
20+
with:
21+
config: '.markdownlint.yml'
22+
args: '**/*.md'

.markdownlint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MD010: false
2+
MD013:
3+
line_length: 1024
4+
MD046:
5+
style: "fenced"

0 commit comments

Comments
 (0)