Skip to content

Change spellchecking #144

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
30 changes: 24 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,37 @@ on:

jobs:
spellchecking:
name: Checking
name: Spellchecking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: rust-lang-ru/common-configs
path: common-configs
- run: npm install yaspeller
- run: git show -m --name-only -1 --format="format:" | grep --color=never -i '.md' | xargs node_modules/.bin/yaspeller -c common-configs/.yaspellerrc
- name: Get all changed markdown files
uses: tj-actions/changed-files@v45
id: changed_files
with:
files: |
async-book-ru/**/*.md
README.md
- name: List changed files
if: steps.changed_files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed_files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
- uses: funkill/spellcheck-github-actions@hunspell-support-action
if: steps.changed_files.outputs.any_changed == 'true'
with:
task_name: Markdown
source_files: ${{ steps.changed_files.outputs.all_changed_files }}
gitlocalize-bug-checking:
name: Checking Gitlocalize bugs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: rust-lang-ru/simpleinfra/gitocalize-bug-checker@master
18 changes: 18 additions & 0 deletions spellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
matrix:
- name: Markdown
hunspell:
d: ru_RU,en_US
dictionary:
wordlists:
- common-configs/wordlist.txt
encoding: utf-8
pipeline:
- pyspelling.filters.html:
comments: false
ignores:
- code
- pre
sources:
- 'async-book-ru/**/*.md'
- README.md
default_encoding: utf-8
Loading