-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
38 lines (36 loc) · 909 Bytes
/
spellcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# checks the spelling of code in all files
name: 'Check spelling'
on:
merge_group:
branches:
- main
push:
branches:
- main
pull_request:
branches:
- main
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: streetsidesoftware/cspell-action@v6
with:
files: '**/*'
root: '.'
config: './cspell.json'
inline: warning
strict: true
use_cspell_files: false
- name: 'If there are errors'
run: |
echo "If there are errors and you think they should not be there, add them to the cspell.json file:"
echo "{"
echo " \"words\": ["
echo " \"worklets\","
echo " \"worklet\","
echo " ... // add your words here"
echo " ],"
echo "}"
if: ${{ failure() }}