Skip to content

Commit e348e0a

Browse files
photonbityellowcap
authored andcommitted
chore(ci): add markdown linter on pull requests
1 parent 81b89ed commit e348e0a

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Markdown Lint
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- ready_for_review
10+
push:
11+
branches:
12+
- master
13+
14+
jobs:
15+
mdl:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check out code
19+
uses: actions/checkout@v3
20+
- name: Run Markdown Lint
21+
uses: actionshub/markdownlint@main
22+
with:
23+
path: "_posts"

.mdl.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
all
2+
3+
rule 'MD013', :line_length => 130
4+
5+
exclude_rule 'MD002'
6+
exclude_rule 'MD041'
7+

.mdlrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style '.mdl.rb'

0 commit comments

Comments
 (0)