Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add ci checks, order fields, fix types, and simplify logic #698

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,26 @@ jobs:
- run: npm outdated
- run: npx npm-check-updates

typos_spell_check:
name: Spell Check with Typos
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Check spelling with typos
uses: crate-ci/typos@master
with:
config: .typos.toml

commitlint:
name: Check the commit conforms to the Conventional Commits specification with commitlint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: wagoid/commitlint-github-action@v5

# TODO: check commits squashed into one (i.e. all changes in a PR are in one commit after last one in primary branch)
# TODO: use release-please to increment version number, update changelog, and publish releases automatically if CI passes
# TODO: check project builds/compiles correctly
# TODO: add tests
# TODO: add tests including coverage
19 changes: 19 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# docs at: https://github.com/crate-ci/typos/blob/master/docs/reference.md

files.extend-exclude = [
".typos.toml"
]

default.extend-ignore-re = [
# false positives
"alguns itens selecionados",
"elementi sono stati selezionati",
"Nada a ser mostrado",
"prevProps",
"prevState",
]

default.locale = "en-us"

# note: add false negatives with corrections in default.extend-identifiers or default.extend-words
# todo: check mistakes over multiple words, e.g. "the the" instead of "the"
Loading
Loading