Skip to content

Commit

Permalink
ci: add markdownlint problem matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Mar 18, 2022
1 parent 7d1144c commit a9342b7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- yarn.lock
- '*.md'
- .github/workflows/markdown-lint.yml
- .github/workflows/markdownlint-problem-matcher.json


jobs:
Expand All @@ -30,4 +31,5 @@ jobs:
- name: Lint markdown files
run: |
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json"
yarn lint:md
17 changes: 17 additions & 0 deletions .github/workflows/markdownlint-problem-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "markdownlint",
"pattern": [
{
"regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
]
}
]
}

0 comments on commit a9342b7

Please sign in to comment.