Skip to content

Commit c931d00

Browse files
authored
Rename workflow and add typos job
1 parent 1c64c78 commit c931d00

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/docs-quality.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
name: Harper
1+
name: Docs Quality
22
on:
33
pull_request:
44
workflow_dispatch:
55
jobs:
6+
typos:
7+
name: Spelling (typos-cli)
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v6
12+
- uses: crate-ci/typos@master
13+
614
harper:
715
name: Grammar and Style Check
816
runs-on: ubuntu-latest
917
steps:
1018
- name: Checkout
1119
uses: actions/checkout@v6
12-
1320
- name: Cache Harper CLI
1421
id: cache-harper
1522
uses: actions/cache@v4
@@ -21,7 +28,6 @@ jobs:
2128
key: ${{ runner.os }}-harper-cli
2229
restore-keys: |
2330
${{ runner.os }}-harper-cli
24-
2531
- name: Report cache status
2632
run: |
2733
echo "cache-hit output: '${{ steps.cache-harper.outputs.cache-hit }}'"
@@ -32,11 +38,9 @@ jobs:
3238
else
3339
echo "RESULT: harper-cli binary NOT present -- full reinstall will run"
3440
fi
35-
3641
- name: Install Harper CLI
3742
if: steps.cache-harper.outputs.cache-hit != 'true'
3843
run: cargo install --locked --git https://github.com/Automattic/harper.git harper-cli
39-
4044
- name: Lint docs with Harper
4145
run: |
4246
set -uo pipefail
@@ -62,7 +66,6 @@ jobs:
6266
InflectedVerbAfterTo
6367
CapitalizePersonalPronouns
6468
Dashes
65-
6669
)
6770
IGNORE_ARGS=()
6871
for rule in "${IGNORED_RULES[@]}"; do

0 commit comments

Comments
 (0)