Skip to content

Commit

Permalink
ci: add a GitHub workflow to validate Markdown files (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Jul 4, 2024
1 parent 2ada44f commit c2c0600
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/check-markdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Markdown Syntax Validation

on: [push, workflow_dispatch]

jobs:
check-markdown:
runs-on: ubuntu-latest
steps:

- name: Checkout this repository
uses: actions/checkout@v4.1.7

- name: Validate Markdown .md
uses: DavidAnson/markdownlint-cli2-action@v16.0.0
with:
config: ".markdownlint.json"
globs: "**.md"
12 changes: 12 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"MD013": false,
"MD024": false,
"MD025": false,
"MD033": false,
"MD049": {
"style": "underscore"
},
"MD050": {
"style": "asterisk"
}
}

0 comments on commit c2c0600

Please sign in to comment.