feat(ci): add a codespell linting action (#4482)

* feat(ci): add a codespell linting action

* fix(ci): run this job if the lint workflow is changed

* ci(codespell): add configuration file

* ci(codespell): exclude mermaid.min.js

* fix: wrong mermaid.min.js location

* ci(codespell): Sur from "Big Sur" is being considered as misspelled

* ci(codespell): make warning the max level

This won't restrict PRs from merging

* ci(codespell): lint on every push

* test: create a misspelling

* Revert "test: create a misspelling"

This reverts commit a2c91cda1e.
This commit is contained in:
Gustavo Valverde 2022-05-25 20:27:44 -04:00 committed by GitHub
parent a6aa4398f4
commit 0e2831dfb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

3
.codespellrc Normal file
View File

@ -0,0 +1,3 @@
[codespell]
ignore-words-list=crate,Sur
exclude-file=book/mermaid.min.js

View File

@ -33,6 +33,7 @@ jobs:
**/Cargo.lock
clippy.toml
.cargo/config.toml
.github/workflows/lint.yml
- name: Workflow files
id: changed-files-workflows
@ -118,3 +119,13 @@ jobs:
with:
level: warning
fail_on_error: false
codespell:
runs-on: ubuntu-latest
needs: changed-files
steps:
- uses: actions/checkout@v3.0.2
- uses: plettich/action-codespell@master
with:
github_token: ${{ secrets.github_token }}
level: warning