-
-
Notifications
You must be signed in to change notification settings - Fork 2k
74 lines (66 loc) · 2.03 KB
/
Copy pathspell-check.yml
File metadata and controls
74 lines (66 loc) · 2.03 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Spell check
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
cspell:
name: cspell
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "20.x"
- name: Install cspell dictionaries
run: |
npm install --no-save \
@cspell/dict-en_us \
@cspell/dict-en-gb \
@cspell/dict-software-terms \
@cspell/dict-golang \
@cspell/dict-fullstack \
@cspell/dict-docker \
@cspell/dict-k8s \
@cspell/dict-node \
@cspell/dict-npm \
@cspell/dict-typescript \
@cspell/dict-html \
@cspell/dict-css \
@cspell/dict-shell \
@cspell/dict-python \
@cspell/dict-redis \
@cspell/dict-sql \
@cspell/dict-filetypes \
@cspell/dict-companies \
@cspell/dict-markdown \
@cspell/dict-en-common-misspellings \
@cspell/dict-people-names \
@cspell/dict-data-science
- name: Run cspell
uses: streetsidesoftware/cspell-action@de2a73e963e7443969755b648a1008f77033c5b2 # v8.4.0
with:
incremental_files_only: false
check_dot_files: explicit
report: typos
verbose: true
- name: Run codespell
uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2
with:
skip: ./.git,./node_modules,./**/*.go,./*.go,./.github/workflows/spell-check.yml
ignore_words_list: TE,te