Skip to content

Commit 76e8ed4

Browse files
committed
More spellcheck testing
1 parent 18dcc67 commit 76e8ed4

File tree

2 files changed

+95
-15
lines changed

2 files changed

+95
-15
lines changed

.github/workflows/basic-qa.yml

Lines changed: 72 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,6 @@ jobs:
2424
with:
2525
strict: true
2626

27-
spellcheck:
28-
name: Spellcheck
29-
30-
runs-on: ubuntu-latest
31-
32-
steps:
33-
- name: Checkout code
34-
uses: actions/checkout@v4
35-
36-
- name: Install markdown-spellcheck
37-
run: npm install -g cspell
38-
39-
- name: Spellcheck
40-
run: cspell --show-suggestions --show-context "**/*.md"
41-
4227
linkcheck:
4328
name: "Check links"
4429
runs-on: ubuntu-latest
@@ -61,3 +46,75 @@ jobs:
6146
format: markdown
6247
token: ${{ secrets.GITHUB_TOKEN }}
6348
fail: true
49+
50+
spellcheck-1:
51+
name: Spellcheck-1
52+
# Config file: .cspell.yml
53+
54+
runs-on: ubuntu-latest
55+
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v4
59+
60+
- name: Install markdown-spellcheck
61+
run: npm install -g cspell
62+
63+
- name: Spellcheck
64+
run: cspell --show-suggestions --show-context "**/*.md"
65+
66+
spellcheck-2:
67+
name: Spellcheck-2
68+
69+
runs-on: ubuntu-latest
70+
71+
steps:
72+
- name: Checkout code
73+
uses: actions/checkout@v4
74+
75+
- name: Spellcheck
76+
uses: streetsidesoftware/cspell-action@v7
77+
with:
78+
# Define glob patterns to filter the files to be checked. Use a new line between patterns to define multiple patterns.
79+
files: '**/*.md'
80+
root: '.'
81+
suggestions: true
82+
# Notification level for annotations. Allowed values are: warning, error, none
83+
inline: warning
84+
treat_flagged_words_as_errors: true
85+
# Determines if the action should be failed if any spelling issues are found.
86+
strict: true
87+
# Limit the files checked to the ones in the pull request or push.
88+
incremental_files_only: false
89+
# Path to `cspell.json`
90+
#config: '.'
91+
92+
spellcheck-3:
93+
name: Spellcheck-3
94+
# Config file: .spellcheck.yml
95+
96+
runs-on: ubuntu-latest
97+
98+
steps:
99+
- name: Checkout code
100+
uses: actions/checkout@v4
101+
102+
- name: Spellcheck
103+
uses: rojopolis/spellcheck-github-actions@v0
104+
105+
spellcheck-4:
106+
name: Spellcheck-4
107+
# Config file: .spellcheck.yml
108+
109+
runs-on: ubuntu-latest
110+
111+
steps:
112+
- name: Checkout code
113+
uses: actions/checkout@v4
114+
115+
- name: Spellcheck
116+
uses: gevhaz/[email protected]
117+
with:
118+
language: en_GB
119+
dictionary: ./.phpcs.dict
120+

.spellcheck.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
jobs: 4
2+
matrix:
3+
- name: Markdown
4+
aspell:
5+
lang: en
6+
d: en_GB
7+
ignore-case: true
8+
dictionary:
9+
wordlists:
10+
- .phpcs.dict
11+
encoding: utf-8
12+
pipeline:
13+
- pyspelling.filters.markdown:
14+
markdown_extensions:
15+
- pymdownx.superfences
16+
- pyspelling.filters.html:
17+
comments: false
18+
ignores:
19+
- code
20+
- pre
21+
sources:
22+
- '**/*.md'
23+
default_encoding: utf-8

0 commit comments

Comments
 (0)