Brand new file 3 #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CSpell Check | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
spellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # ensures the full git history is available | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install CSpell | |
run: | | |
npm install -g cspell | |
npm install -g @cspell/dict-ru_ru | |
cspell link add @cspell/dict-ru_ru | |
npm install -g @cspell/dict-en-common-misspellings | |
cspell link add @cspell/dict-en-common-misspellings | |
- name: Fetch all modified files | |
id: files | |
run: | | |
echo "::set-output name=all_files::$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | tr '\n' ' ')" | |
- name: Run CSpell on all changed files | |
continue-on-error: true | |
run: | | |
cspell --config cspell.json --show-suggestions ${{ steps.files.outputs.all_files }} |