-
Notifications
You must be signed in to change notification settings - Fork 188
53 lines (50 loc) · 1.31 KB
/
docs-check.yml
File metadata and controls
53 lines (50 loc) · 1.31 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
name: Docs Check
permissions:
contents: read
# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
on:
push:
branches:
- main
paths:
- "**.md"
- "docs/**"
- ".config/forest.dic"
- ".config/spellcheck.toml"
- ".github/workflows/docs-check.yml"
merge_group:
pull_request:
branches:
- main
paths:
- "**.md"
- "docs/**"
- ".config/forest.dic"
- ".config/spellcheck.toml"
- ".github/workflows/docs-check.yml"
jobs:
docs-check:
name: Check
runs-on: ubuntu-24.04-arm
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v6
- uses: jdx/mise-action@v4
- name: Check spellcheck dictionary format
working-directory: .
run: mise run format-spellcheck-dictionary-check
- name: Install cargo-spellcheck
working-directory: .
run: |
sudo apt-get install -y libclang-dev
cargo binstall --no-confirm cargo-spellcheck@0.15.7
- name: Spellcheck Markdown files
working-directory: .
run: mise run lint:spellcheck-markdown
- run: mise run docs:lint
- run: mise run docs:build