-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (38 loc) · 943 Bytes
/
docs-check.yml
File metadata and controls
44 lines (38 loc) · 943 Bytes
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
name: Docs Check
on:
push:
paths:
- 'docs/**'
- '**.md'
- '**.rst'
paths-ignore:
- 'PULL_REQUEST_TEMPLATE.md'
pull_request:
paths:
- 'docs/**'
- '**.md'
- '**.rst'
paths-ignore:
- 'PULL_REQUEST_TEMPLATE.md'
jobs:
docs-check:
name: Validate Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check Markdown Links (Rust)
uses: lycheeverse/lychee-action@v2.6.1
with:
args: --verbose docs/**/*.md *.md
- name: Run Spell Check (cspell)
uses: streetsidesoftware/cspell-action@v2
with:
files: docs/**/*.md *.md
- name: Cleanup temporary files
run: |
rm -rf lychee/
- name: Format Check with Prettier
run: |
npm install -g prettier
npx prettier --check "docs/**/*.md" "**/*.md"