Skip to content

Commit ce195cd

Browse files
committed
add: run cspell in CI on every push
codespell already ran on every push via its own job, but cspell only ran during mkdocs build, which only triggers on pushes to the mkdocs branch. Adds a parallel cspell job so both spellcheckers give early feedback on any branch, not just at deploy time.
1 parent 9bbff33 commit ce195cd

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,34 @@ name: Run tests
22

33
on: [push]
44

5-
jobs:
5+
jobs:
66
codespell:
77
name: Check for spelling errors
88
runs-on: ubuntu-latest
99

1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3
13-
13+
1414
- name: Codespell
1515
uses: codespell-project/actions-codespell@v1
1616

17+
cspell:
18+
name: Check for spelling errors (cspell)
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '20'
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Cspell
34+
run: npx cspell --no-progress "**/*.md"
35+

0 commit comments

Comments
 (0)