-
-
Notifications
You must be signed in to change notification settings - Fork 438
32 lines (26 loc) · 932 Bytes
/
docs-check.yml
File metadata and controls
32 lines (26 loc) · 932 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
name: Check docs
on:
push:
# We intentionally don't run push on feature branches. See PR for rational.
branches: [unstable, stable]
pull_request:
jobs:
build:
name: Docs spellcheck
runs-on: ubuntu-latest
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: "./.github/actions/setup-and-build"
with:
node: 24
- name: Check wordlist is sorted
run: scripts/wordlist_sort_check.sh
- name: Build and collect docs
run: pnpm docs:build
# Run prettier check after generating the docs
- name: Check docs format
run: pnpm docs:lint
# Run spellcheck AFTER building docs, in case the CLI reference has issues
- name: Spellcheck
uses: rojopolis/spellcheck-github-actions@531492f4dd27f0593ca398f2ed225d1b92eec828 # 0.32.0