Skip to content

Commit baa002a

Browse files
committed
ci: add workflow to lint documentation
1 parent 872ed67 commit baa002a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lint documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
setup:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: jdx/mise-action@v2
18+
- uses: actions/cache@v4
19+
id: cache-node-modules
20+
with:
21+
path: docs/node_modules
22+
key: ${{ runner.os }}-docs-${{ hashFiles('docs/package-lock.json') }}
23+
- working-directory: docs/
24+
run: npm ci
25+
26+
textlint:
27+
needs: setup
28+
runs-on: ubuntu-24.04
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: jdx/mise-action@v2
32+
- uses: actions/cache@v4
33+
id: cache-node-modules
34+
with:
35+
path: docs/node_modules
36+
key: ${{ runner.os }}-docs-${{ hashFiles('docs/package-lock.json') }}
37+
- working-directory: docs/
38+
run: npm run textlint

0 commit comments

Comments
 (0)