Skip to content

Commit fb2b99d

Browse files
author
carlos.tasada
committed
Added lint support to GH workflow
1 parent 57e338c commit fb2b99d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ jobs:
3737
files: docs
3838
fail_on_error: true
3939

40+
- name: Lint md files
41+
uses: DavidAnson/markdownlint-cli2-action@v16
42+
with:
43+
config: '.markdownlint.json'
44+
globs: './docs/**/*.md'
45+
46+
- name: Lint mdx files
47+
uses: DavidAnson/markdownlint-cli2-action@v16
48+
with:
49+
config: '.markdownlintx.json'
50+
globs: './docs/**/*.mdx'
51+
4052
- name: Deploy to GitHub Pages
4153
if: github.ref == 'refs/heads/master'
4254
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)