Skip to content

Commit 67c1bb0

Browse files
committed
Add spelling and link checker
1 parent f6b942d commit 67c1bb0

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/ci.yml renamed to .github/workflows/cpp.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on: [push, pull_request]
22

3-
name: CI
3+
name: C++
44

55
jobs:
66
pixi-build:
@@ -13,4 +13,5 @@ jobs:
1313
with:
1414
pixi-version: v0.5.0
1515
cache: true
16+
1617
- run: pixi run build
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Check spelling and links
2+
on: [pull_request]
3+
4+
jobs:
5+
typos:
6+
# https://github.com/crate-ci/typos
7+
# Add exceptions to .typos.toml
8+
# install and run locally: cargo install typos-cli && typos
9+
name: typos
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Actions Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Check spelling of entire workspace
16+
uses: crate-ci/typos@master
17+
18+
spellcheck:
19+
name: Spellcheck
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: streetsidesoftware/cspell-action@v2
24+
with:
25+
files: "**/*.md"
26+
27+
linkinator:
28+
name: linkinator
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: jprochazk/linkinator-action@main
33+
with:
34+
linksToSkip: "https://crates.io/crates/.*, http://localhost:.*" # Avoid crates.io rate-limiting
35+
retry: true
36+
retryErrors: true
37+
retryErrorsCount: 5
38+
retryErrorsJitter: 2000

0 commit comments

Comments
 (0)