Skip to content

add files section to cspell.config.yml instead of passing it on the cli #12

add files section to cspell.config.yml instead of passing it on the cli

add files section to cspell.config.yml instead of passing it on the cli #12

name: "Check Spelling"
on:
push:
# You can manually run this workflow.
workflow_dispatch:
jobs:
# ---------------------------------------------------------------------------------------
check-spelling:
# ---------------------------------------------------------------------------------------
name: "Spell Checker"
runs-on: ubuntu-latest
steps:
- name: 🤘 Checkout Code
uses: actions/checkout@v4 # https://github.com/actions/checkout
- name: 🔽 Install Dependencies
run: sudo npm install -g cspell
- name: 🙏 Check Spelling using cspell
run: |
export CSPELL_OUTPUT=$(sudo cspell --config cspell.json --no-summary)
if [ -n "$CSPELL_OUTPUT" ]; then echo "$CSPELL_OUTPUT" && exit 1; fi;