-
Notifications
You must be signed in to change notification settings - Fork 42
38 lines (36 loc) · 987 Bytes
/
ci-md.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI
on:
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- "**.md"
- "**.mdx"
push:
branches:
- main
paths:
- "**.md"
- "**.mdx"
jobs:
lint-markdown:
name: Lint (md)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install eslint & eslint-plugin-mdx
run: npm install [email protected] [email protected] --global
## detect errors from markdownlint-cli and create annotations for them
- uses: xt0rted/markdownlint-problem-matcher@v3
- name: Markdown Lint
uses: articulate/actions-markdownlint@v1
with:
config: .markdownlint.yaml
ignore: vendor
version: 0.39.0
- name: MDX Lint
run: |
npx eslint . --ext js,mdx \
--resolve-plugins-relative-to=$(npm config get prefix)/lib/node_modules