aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/markdown-lint.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/markdown-lint.yml')
-rw-r--r--.github/workflows/markdown-lint.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml
new file mode 100644
index 0000000000..7a6fde4818
--- /dev/null
+++ b/.github/workflows/markdown-lint.yml
@@ -0,0 +1,26 @@
+name: Markdown lint (project files)
+
+on:
+ pull_request:
+ branches:
+ - main
+ paths:
+ - '*.md'
+ - .github/workflows/markdown-lint.yml
+
+
+jobs:
+ docs:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup Node.js environment
+ uses: actions/setup-node@v2
+ with:
+ node-version: "12"
+
+ - name: Lint markdown files
+ run: |
+ npx markdownlint-cli '*.md' -i LICENSE.md -i CODE_OF_CONDUCT.md