chore: fix typo & add spell check #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: pull_request | |
jobs: | |
misc: | |
runs-on: [self-hosted, X64] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: spell check | |
run: | | |
# the python version in self-hosted runner is 3.7, which is not supported by the latest get-pip.py | |
python3 <(curl -s https://bootstrap.pypa.io/pip/3.7/get-pip.py) | |
pip install codespell==2.3.0 | |
# ignore test files, go project names, binary files via `--skip` and special var/regex via `--ignore-words` | |
git grep --cached -l '' | xargs codespell --skip 'fuzz/*,*_test.tmpl,testdata/*,*_test.go,go.mod,go.sum,*.gz' --ignore-words=.github/workflows/.ignore_words |