-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (40 loc) · 976 Bytes
/
lint-md.yml
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
39
40
41
42
43
44
45
46
47
48
name: Lint Markdown
on:
push:
branches-ignore:
- main
paths:
- "**/*.md"
pull_request:
paths:
- "**/*.md"
jobs:
setup-node-modules:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Dependencies
run: npm install
lint-md:
name: Linting Markdown
runs-on: ubuntu-latest
needs: setup-node-modules
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Run Markdown Linting
run: npm run lint-md