Skip to content

Testing linter with codeblock hack #73

Testing linter with codeblock hack

Testing linter with codeblock hack #73

Workflow file for this run

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 }}