Skip to content

Commit 20c3319

Browse files
committed
Add remark check to GHA
1 parent 1158c18 commit 20c3319

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/remark.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Remark
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.md'
7+
pull_request:
8+
paths:
9+
- '**.md'
10+
11+
jobs:
12+
remark:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/[email protected]
18+
- name: Setup Node.js
19+
uses: actions/[email protected]
20+
- name: Install remark
21+
run: npm install remark-cli remark-lint remark-lint-maximum-line-length remark-preset-lint-recommended
22+
23+
- name: Check *.md files
24+
run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null

0 commit comments

Comments
 (0)