-
Notifications
You must be signed in to change notification settings - Fork 29
55 lines (43 loc) · 1.11 KB
/
lint.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Lint markdown files
on:
push:
branches:
- main
paths:
- "**/*.md"
pull_request:
paths:
- "**/*.md"
jobs:
check-markdown-yaml:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run Front Matter Linting
uses: alasdairwilson/front-matter-lint@main
with:
directory: "."
lint-python-codeblocks:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Lint Python Code Blocks in Markdown
uses: OxfordRSE/lint-md-codeblocks@main
with:
directory: "."
language: "python"
lint-markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install markdownlint-cli
run: npm install -g markdownlint-cli
- name: Lint Markdown files
run: markdownlint -f '**/*.md' --ignore '*/*/slides/*' --ignore README.md