ci: Add typos check (#697)
This commit is contained in:
@@ -46,12 +46,20 @@ jobs:
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
typos:
|
||||
# If this fails, consider changing your text or adding something to .typos.toml
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: check typos
|
||||
uses: crate-ci/typos@v1.23.6
|
||||
build_result:
|
||||
name: Result
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- "build"
|
||||
- "semver"
|
||||
- "typos"
|
||||
steps:
|
||||
- name: Mark the job as successful
|
||||
run: exit 0
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# See the configuration reference at
|
||||
# https://github.com/crate-ci/typos/blob/master/docs/reference.md
|
||||
|
||||
# Corrections take the form of a key/value pair. The key is the incorrect word
|
||||
# and the value is the correct word. If the key and value are the same, the
|
||||
# word is treated as always correct. If the value is an empty string, the word
|
||||
# is treated as always incorrect.
|
||||
|
||||
# Match Identifier - Case Sensitive
|
||||
[default.extend-identifiers]
|
||||
setShowsApplicatinBadge_ = "setShowsApplicatinBadge_"
|
||||
showsApplicatinBadge = "showsApplicatinBadge"
|
||||
|
||||
# Match Inside a Word - Case Insensitive
|
||||
[default.extend-words]
|
||||
|
||||
[files]
|
||||
# Include .github, .cargo, etc.
|
||||
ignore-hidden = false
|
||||
# /.git isn't in .gitignore, because git never tracks it.
|
||||
# Typos doesn't know that, though.
|
||||
extend-exclude = ["/.git"]
|
||||
|
||||
Reference in New Issue
Block a user