-
Notifications
You must be signed in to change notification settings - Fork 54
62 lines (52 loc) · 1.8 KB
/
Copy pathdocs-lint.yaml
File metadata and controls
62 lines (52 loc) · 1.8 KB
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
56
57
58
59
60
61
62
# Docs-Lint Workflow
#
# Runs lightweight documentation checks on every push and pull request.
# Serves as the required CI signal for documentation-only pull requests,
# which are excluded from the heavyweight test and compatibility workflows
# via `paths-ignore` rules in those workflows.
#
# "Docs-only" path policy (mirrored in the `paths-ignore` lists of
# testing.yaml, os-compatibility.yaml, container.yaml, and
# generate_coverage_pr.yaml; db-compatibility.yaml and db-benchmarking.yaml
# are already scoped to code paths via `paths:` inclusion rules):
# - **/*.md — all Markdown files (docs/, READMEs, AGENTS.md, SKILL.md, …)
# - project-words.txt — spell-check dictionary (documentation artefact)
#
# A pull request is treated as docs-only when every changed file matches
# one of the patterns above. Mixed pull requests (docs + code) still run
# the full CI matrix because the code-side changes escape `paths-ignore`.
name: Docs Lint
on:
push:
pull_request:
jobs:
docs:
name: Docs Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v6
- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- id: node
name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
- id: cache
name: Enable Job Cache
uses: Swatinem/rust-cache@v2
- id: linter
name: Install Internal Linter
run: cargo install --locked --git https://github.com/torrust/torrust-linting --bin linter
- id: lint-markdown
name: Lint Markdown
run: linter markdown
- id: lint-spelling
name: Check Spelling
run: linter cspell