Skip to content

Commit 78c3965

Browse files
committed
refactor: move typo check to checks.yml
1 parent e8fc7d2 commit 78c3965

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/checks.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Build
2828
uses: ./.github/actions/build
2929

30-
Lint-and-format:
30+
Lint-Format-and-TypoCheck:
3131
strategy:
3232
matrix:
3333
node: [20]
@@ -68,6 +68,16 @@ jobs:
6868
- name: Run Oxlint
6969
if: steps.get_changed_files.outputs.files_changed == 'true'
7070
run: xargs npm run lint:strict < changed_files.txt
71+
72+
- name: Run codespell
73+
if: steps.get_changed_files.outputs.files_changed == 'true' && github.event.pull_request.labels.*.name != 'no-typo-check'
74+
uses: codespell-project/actions-codespell@master
75+
with:
76+
check_filenames: true
77+
path: ${{ steps.get_changed_files.outputs.files }}
78+
skip: "*.json,./node_modules,./dist,./.husky,./.git,./src/mina/**/*,./src/bindings/compiled/**/*"
79+
check_hidden: false
80+
ignore_words_list: "tHi,modul,optin,deriver,PRing,toWords,iSelf"
7181

7282
Upload-bindings:
7383
name: upload bindings artifact

0 commit comments

Comments
 (0)