Browse Source

ci: add workflow to check the spelling.

pull/710/head
Rinne 1 year ago
parent
commit
de31a06a4a
2 changed files with 45 additions and 0 deletions
  1. +14
    -0
      .github/_typos.toml
  2. +31
    -0
      .github/workflows/spell_check.yml

+ 14
- 0
.github/_typos.toml View File

@@ -0,0 +1,14 @@
# Typos configuration file
#
# Info: https://github.com/marketplace/actions/typos-action
# Install: brew install typos-cli
# Install: conda install typos
# Run: typos -c .github/_typos.toml

[files]
extend-exclude = [
"_typos.toml",
"docs/xmldocs/",
"LLama.Web/wwwroot/",
"LLama/runtimes/deps/"
]

+ 31
- 0
.github/workflows/spell_check.yml View File

@@ -0,0 +1,31 @@
# Check pull requests for typos.
#
# Configuration: .github/_typos.toml
#
# Info: https://github.com/marketplace/actions/typos-action
# Local install: brew install typos-cli
# Local install: conda install typos
# Local run: typos -c .github/_typos.toml

name: Spell Check

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
run:
name: Spell check
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Use custom config file
uses: crate-ci/typos@master
with:
config: .github/_typos.toml
write_changes: false
quiet: true

Loading…
Cancel
Save