-
Notifications
You must be signed in to change notification settings - Fork 2.8k
43 lines (40 loc) · 1.06 KB
/
lint.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
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-md:
runs-on: ubuntu-latest
name: Lint Markdown content
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Markdown lint for README
uses: docker://avtodev/markdown-lint:v1
with:
config: ./.markdownlint.json
args: ./README.md
lint-editorconfig:
runs-on: ubuntu-latest
name: Lint for editorconfig violations
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Check for editorconfig violations
uses: editorconfig-checker/action-editorconfig-checker@v2
lint-markdown-toc:
runs-on: ubuntu-latest
name: Lint for Table of Contents
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install markdown-toc
- run: ./node_modules/.bin/markdown-toc -i README.md
- run: git diff --exit-code