Skip to content

Commit 13e9da8

Browse files
committed
ci(workflow): add lint-typos job
1 parent 55b88c3 commit 13e9da8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.codespellrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[codespell]
2+
skip = *.pulsar.go,*.pb.go,*.pb.gw.go,*.json,*.git,*.bin,*.sum,*.mod,CHANGELOG.md,./docs
3+
count = true
4+
quiet-level = 3

.github/workflows/lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,15 @@ jobs:
233233
version: "v0.9.0"
234234
env:
235235
SHELLCHECK_OPTS: -e SC2034
236+
237+
lint-typos:
238+
runs-on: ubuntu-22.04
239+
steps:
240+
- name: Check out repository
241+
uses: actions/checkout@v4
242+
243+
- name: Run codespell
244+
run: |
245+
sudo apt-get install codespell=2.1.0-1 -y
246+
codespell --config .codespellrc
247+
exit $?

0 commit comments

Comments
 (0)